Anyone know how to do this? On Sep 21, 10:35 pm, Yo-Yo Ma <baxterstock...@gmail.com> wrote: > I have a model with: > > parent = ForeignKey('self', blank=True, null=True) > > In that model I've overridden clean() to contain: > > if self.parent: > # Do some stuff > > It raises an attribute error saying that parent.pk doesn't exist. How > can I get around this. Note that my foreign key is recursive.
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.