Merge pull request #1784 from werat/fix_override_comment

Restore comment from cached value after queryset copy
This commit is contained in:
erdenezul
2018-05-19 09:23:58 +08:00
committed by GitHub
2 changed files with 13 additions and 5 deletions

View File

@@ -1579,6 +1579,9 @@ class BaseQuerySet(object):
if self._batch_size is not None:
self._cursor_obj.batch_size(self._batch_size)
if self._comment is not None:
self._cursor_obj.comment(self._comment)
return self._cursor_obj
def __deepcopy__(self, memo):