values_list should be iterable multiple times
This commit is contained in:
parent
b0557a5d58
commit
2611e20284
1 changed files with 2 additions and 2 deletions
|
@ -518,10 +518,10 @@ class BaseQueryWrapper(BaseWrapper):
|
|||
own_values = (tuple(getattr(obj, arg) for arg in args) for obj in self._get_created_objects())
|
||||
if flat:
|
||||
own_values = (v[0] for v in own_values)
|
||||
return chain(
|
||||
return tuple(chain(
|
||||
self._obj.values_list(*args, flat=flat),
|
||||
own_values,
|
||||
)
|
||||
))
|
||||
|
||||
@get_queryset
|
||||
def first(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue