Ticket #8115: django-cyclic-dependency-8115.patch
File django-cyclic-dependency-8115.patch, 553 bytes (added by , 16 years ago) |
---|
-
db/models/query.py
96 96 while len(dealt_with) < len(models): 97 97 found = False 98 98 for model in models: 99 if model in dealt_with: 100 continue 99 101 children = self.children.setdefault(model, []) 100 102 if len([c for c in children if c not in dealt_with]) == 0: 101 103 dealt_with[model] = None