On 10/7/06, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > > Nicolas Steinmetz wrote: > > > class Comment(models.Model): > > author = models.CharField(maxlength=50) > > email = models.EmailField() > > title = models.CharField(maxlength=50) > > comment = models.TextField() > > post = models.ForeignKey(Post) > > parent = models.ForeignKey('self', blank=True, null=True, > > related_name='child') > > It looks django do not like multiple ForeignKey... I'll bypass it in a > different way ;)
Sorry for the long delay in responding to this message. Django models can have multiple foreign keys; however, there are some known issues with manipulators on models with self-referential foreign keys that give the error message you are describing. A good starting point is http://code.djangoproject.com/ticket/2536 - this ticket has references to a few other tickets with similar problems. Some of these tickets may give you some hints for workarounds. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---