On Mon, Feb 27, 2012 at 09:18:22AM -0600, Gene horodecki wrote:
Hi there. I have a multi-table inheritance in my main application like this:

MailItem->Parcel->LargeParcel

Now I want to have a separate application called 'dispatch' that serves as a staging area as information comes in about the parcels. So I want a single table that has a row that corresponds to:

MailItem->Parcel->LargeParcel->LargeParcelDispatchInfo

Note that this row will exist briefly, be processed, and then deleted so I would like it to be contained in one table to keep things simple. I know if the parcel was an abstract class I could accomplish this easily but that is not what I want in my main app. How do I make this a separate table in the dispatch app without having to manually keep the models in sync? Thanks.

You should be able to inherit from the model in the main application without adding any new fields:

In dispatch/models.py:

        from myapp.models import LargeParcel

        class LargeParcelDispatchIno(LargeParcel):
          pass

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@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.

Reply via email to