Limit the amount of work when a Query is deepcopied.
(self, memo)
| 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: |