MCPcopy
hub / github.com/django/django / __deepcopy__

Method __deepcopy__

django/db/models/sql/query.py:363–367  ·  view source on GitHub ↗

Limit the amount of work when a Query is deepcopied.

(self, memo)

Source from the content-addressed store, hash-verified

361 return self.get_compiler(DEFAULT_DB_ALIAS).as_sql()
362
363 def __deepcopy__(self, memo):
364 """Limit the amount of work when a Query is deepcopied."""
365 result = self.clone()
366 memo[id(self)] = result
367 return result
368
369 def get_compiler(self, using=None, connection=None, elide_empty=True):
370 if using is None and connection is None:

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.95

Tested by

no test coverage detected