1
0
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:
Hasan Ramezani
2020-09-10 14:34:04 +02:00
committed by Mariusz Felisiak
parent 84609b3205
commit 5362e08624
3 changed files with 39 additions and 1 deletions

View File

@@ -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):