Re: Unique Id's across several classes/tables

2007-03-01 Thread Honza Král
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): >

Re: Unique Id's across several classes/tables

2007-02-28 Thread jzellman
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

Re: Unique Id's across several classes/tables

2007-02-27 Thread Rubic
> 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

Unique Id's across several classes/tables

2007-02-27 Thread jzellman
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