On 2/28/07, jzellman <[EMAIL PROTECTED]> wrote:
>
> Thanks for the reply.
>
> What I am trying to do is have subclasses. So this is what i would
> like to do:
>
> class Parent(models.Model):
> #stuff common to all child types
>
> class ChildA(Parent):
> #...
>
> class ChildB(Parent):
>
Thanks for the reply.
What I am trying to do is have subclasses. So this is what i would
like to do:
class Parent(models.Model):
#stuff common to all child types
class ChildA(Parent):
#...
class ChildB(Parent):
#
i would like to have ids for ChildA and ChildB to be unique.
T
> Is it possible to have the ID field be unique across several classes
> or tables? What i would like to do is, given the ID, load the object
> of that type out of the database. Does this make sense, and is it
> possible?
No, it doesn't make sense <0.5 wink>, but here's
how you might do it.
Yo
Hi,
Is it possible to have the ID field be unique across several classes
or tables? What i would like to do is, given the ID, load the object
of that type out of the database. Does this make sense, and is it
possible?
thanks,
Jeff
--~--~-~--~~~---~--~~
You re
4 matches
Mail list logo