Return the query as an SQL string and the parameters that will be substituted into the query.
(self)
| 354 | return sql % params |
| 355 | |
| 356 | def sql_with_params(self): |
| 357 | """ |
| 358 | Return the query as an SQL string and the parameters that will be |
| 359 | substituted into the query. |
| 360 | """ |
| 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.""" |