Re: Inline editing an object related to itself.

2008-06-07 Thread Cliff
Just to throw in another variable. The recursion comes from file django/db/models.py in method get_follow: def get_follow(self, override=None): follow = {} for f in self.fields + self.many_to_many + self.get_all_related_objects(): if override and f.name in override:

Inline editing an object related to itself.

2008-06-07 Thread Cliff
Hi, This is the simplified version of my code: class Test(models.Model): parent = models.ForeignKey('self',edit_inline=models.TABULAR) and the error I got: RuntimeError: maximum recursion depth exceeded I can understand that's because it's doing recursive for the child object, grand child ob