On 2/9/06, Tobias <[EMAIL PROTECTED]> wrote: > class KeyData(meta.Model): > orga_id = meta.ForeignKey(Unternehmen, db_column='id') > keyd_year = meta.IntegerField() > # ... > id = meta.IntegerField(primary_key=1) > # this causes the error: > the_unternehmen = meta.ManyToOne(unternehmens.Unternehmen, 'id')
You want this instead: the_unternehmen = meta.ForeignKey(unternehmens.Unternehmen) You're never supposed to use meta.ManyToOne directly -- if you let me know where you saw that, I will correct the documentation. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org