Re: models that reference each other through foreign key

2006-08-13 Thread Bryan Murdock
On 8/12/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 12-Aug-06, at 3:45 PM, Maciej Bliziñski wrote: > > >> committee = models.ForeignKey( 'Committee' ) > > > > You shouldn't use the string argument (I mean, I never do that). And > > what if one person is in two committees? > > sinc

Re: models that reference each other through foreign key

2006-08-12 Thread Kenneth Gonsalves
On 12-Aug-06, at 3:45 PM, Maciej Bliziński wrote: >> committee = models.ForeignKey( 'Committee' ) > > You shouldn't use the string argument (I mean, I never do that). And > what if one person is in two committees? since the class 'Committee' is not yet defined, it wont work without the ''

Re: models that reference each other through foreign key

2006-08-12 Thread Bryan Murdock
On 8/12/06, Maciej Bliziñski <[EMAIL PROTECTED]> wrote: > > On Fri, 2006-08-11 at 22:02 -0700, Bryan Murdock wrote: > > First I must admit that I'm a databse dummy. I'm using fairly recent > > django code from svn. I have a simple desire. I want people who can > > be organized into committees, w

Re: models that reference each other through foreign key

2006-08-12 Thread Maciej Bliziński
On Fri, 2006-08-11 at 22:02 -0700, Bryan Murdock wrote: > First I must admit that I'm a databse dummy. I'm using fairly recent > django code from svn. I have a simple desire. I want people who can > be organized into committees, with each committee having a committee > leader, also a person. I

models that reference each other through foreign key

2006-08-11 Thread Bryan Murdock
First I must admit that I'm a databse dummy. I'm using fairly recent django code from svn. I have a simple desire. I want people who can be organized into committees, with each committee having a committee leader, also a person. I wrote up my models like so: class Person( models.Model ):