diff --git a/mongoengine/queryset.py b/mongoengine/queryset.py index 3b37c3d7..58ea61c6 100644 --- a/mongoengine/queryset.py +++ b/mongoengine/queryset.py @@ -346,18 +346,18 @@ class QuerySet(object): self._skip = None def clone(self): - """Creates a copy of the current :class:`~mongoengine.queryset.QuerySet`""" - c = self.__class__(self._document, self._collection_obj) + """Creates a copy of the current :class:`~mongoengine.queryset.QuerySet`""" + c = self.__class__(self._document, self._collection_obj) - copy_props = ('_initial_query', '_query_obj', '_where_clause', + copy_props = ('_initial_query', '_query_obj', '_where_clause', '_loaded_fields', '_ordering', '_snapshot', '_timeout', '_limit', '_skip') - for prop in copy_props: - val = getattr(self, prop) - setattr(c, prop, copy.deepcopy(val)) + for prop in copy_props: + val = getattr(self, prop) + setattr(c, prop, copy.deepcopy(val)) - return c + return c @property def _query(self):