On 8/26/05, xtian <[EMAIL PROTECTED]> wrote: > I think that line should be > job = meta.ForeignKey(Job, null=True) > > The _id is implied - it's part of the machinery that links your Log to > your Job. Semantically, your log is linked to a job, not a jobid.
Yeah, xtian is right -- it should be "job = meta.ForeignKey(Job, null=True)". With the new syntax, you no longer have to add "_id" to ForeignKey fields -- Django does that behind the scenes. If your database column isn't called job_id, use this to explicitly tell Django the column name: job = meta.ForeignKey(Job, null=True, db_column=jobid) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org