id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 9743 Problem in admin when displaying foreignkey of a model that reference himself daniels Jeremy Dunck "{{{ class Client(models.Model): name = models.CharField() class Module(models.Model): client = models.ForeignKey(Client) class SuperModule(Module): sample = models.ForeignKey(Module) }}} If in the django.admin.contrib, we want to display SuperModule with a list_display = ('name', 'client') it will not work unless we remove the foreign key to Module. It was not tested with the simple code above, but in our complete code. After some investigation, I found a way where an error occured when doing 'as_sql()' on a query_set. The error was about an extra parameter to avoid.update(). And some lines below, the same function call but with a small difference in parenthesis and works OK. " closed Database layer (models, ORM) 1.0 worksforme daniels@… Accepted 1 0 1 0 0 0