mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-04-24 21:04:43 +00:00
Use legacy compatible approach
This commit is contained in:
parent
cb362f4a12
commit
91b07079e0
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ class InheritanceQuerySet(QuerySet):
|
|||
def iterator(self):
|
||||
iter = super(InheritanceQuerySet, self).iterator()
|
||||
if getattr(self, 'subclasses', False):
|
||||
extras = self.query.extra_select.keys()
|
||||
extras = self.query.extra.keys()
|
||||
# sort the subclass names longest first,
|
||||
# so with 'a' and 'a__b' it goes as deep as possible
|
||||
subclasses = sorted(self.subclasses, key=len, reverse=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue