MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / clone

Method clone

mongoengine/queryset/base.py:821–823  ·  view source on GitHub ↗

Create a copy of the current queryset.

(self)

Source from the content-addressed store, hash-verified

819 return self._clone_into(self.__class__(self._document, collection))
820
821 def clone(self):
822 """Create a copy of the current queryset."""
823 return self._clone_into(self.__class__(self._document, self._collection_obj))
824
825 def _clone_into(self, new_qs):
826 """Copy all the relevant properties of this queryset to

Callers 15

__call__Method · 0.95
__getitem__Method · 0.95
search_textMethod · 0.95
getMethod · 0.95
firstMethod · 0.95
deleteMethod · 0.95
updateMethod · 0.95
modifyMethod · 0.95
with_idMethod · 0.95
noneMethod · 0.95
select_relatedMethod · 0.95
limitMethod · 0.95

Calls 1

_clone_intoMethod · 0.95

Tested by 4

test_q_cloneMethod · 0.64
test_cloneMethod · 0.64