Hi there, I am adding a new app to django project and I thought about inheriting pretty much everything I can, so I did:
from ccpngrid.models import GridJobForm from acpype.models import AcpypeJob class IsdJob(AcpypeJob): pass class IsdJobForm(GridJobForm): pass To my (bad) surprise, IsdJobForm worked pretty fine, and IsdJob as well at first, but when looking at my mysql db I have: SELECT * FROM isd_isdjob; +------------------+ | acpypejob_ptr_id | +------------------+ | test | +------------------+ SELECT * FROM webapps.acpype_acpypejob; +-------+-------+----------+--------------------------+--------- +----------+-------+ | juser | jname | fileName | jdate | jobdir | jstatus | jpid | +-------+-------+----------+--------------------------+--------- +----------+-------+ |alan | test | test | Tue Apr 6 13:34:17 2010 | test | Failed | 1 +-------+-------+----------+--------------------------+--------- +----------+-------+ So it seems that isd_isdjob is linking to another table (using the django admin site I see isd_isdjob the way it was to suposed to be, with all fields shown for acpype_acpypejob). Is there a way in django of using inheritance and having the correct tables? Many thanks in advance Alan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.