Monday, February 27, 2012

Way to isolate inherited model classes?

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 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment