instances of queryset should also be wrapped
This commit is contained in:
parent
3609420d8e
commit
da9a7c5130
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ class BaseQueryWrapper(BaseWrapper):
|
|||
return self._wrap_queryset(self._obj.using(alias))
|
||||
|
||||
def __iter__(self):
|
||||
return iter([instance for instance in self._obj])
|
||||
return iter([self._wrap_instance(instance) for instance in self._obj])
|
||||
|
||||
def iterator(self):
|
||||
return iter(self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue