Re: determining model subclass

2008-07-12 Thread Andre Meyer
hi Dave finally, i have tried what you suggested. indeed, this is what is described here. and it works! thanks a lot! cheers André On Tue, Jul 8, 2008 at 3:13 PM, Chester <[EMAIL PROTECTED]> wrote: > > André, > I'm

Re: determining model subclass

2008-07-08 Thread David K
Dave's method is what I also use. I was hoping someone would come up with an easier way, but I think it is a limitation of the way the database tables are created in multitable inheritance. David On Jul 8, 6:13 am, Chester <[EMAIL PROTECTED]> wrote: > André, > I'm assuming that you are using th

Re: determining model subclass

2008-07-08 Thread Chester
André, I'm assuming that you are using the Trunk version of Django because subclassing isn't supported in previous versions. Assuming that. You can either have Item be an Abstract class which does not act like a table but just a parent class containing common items. (this is not what you are try

determining model subclass

2008-07-07 Thread Andre Meyer
hi all is it possible to determine the subclass of a model instance? what i mean is this: if you have a (n abstract) model class and two subclasses, like class Item(models.Model): pass class Task(Item): pass class Event(Item): pass and you retrieve items = Item.objects.all() how