mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #31943 -- Fixed recreating QuerySet.values()/values_list() when using a pickled Query.
This commit is contained in:
committed by
Mariusz Felisiak
parent
84609b3205
commit
5362e08624
@@ -210,6 +210,8 @@ class QuerySet:
|
||||
|
||||
@query.setter
|
||||
def query(self, value):
|
||||
if value.values_select:
|
||||
self._iterable_class = ValuesIterable
|
||||
self._query = value
|
||||
|
||||
def as_manager(cls):
|
||||
|
||||
Reference in New Issue
Block a user