MCPcopy
hub / github.com/django/django / __str__

Method __str__

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

Return the query as a string of SQL with the parameter values substituted in (use sql_with_params() to see the unsubstituted string). Parameter values won't necessarily be quoted correctly, since that is done by the database interface at execution time.

(self)

Source from the content-addressed store, hash-verified

343 return alias
344
345 def __str__(self):
346 """
347 Return the query as a string of SQL with the parameter values
348 substituted in (use sql_with_params() to see the unsubstituted string).
349
350 Parameter values won't necessarily be quoted correctly, since that is
351 done by the database interface at execution time.
352 """
353 sql, params = self.sql_with_params()
354 return sql % params
355
356 def sql_with_params(self):
357 """

Callers

nothing calls this directly

Calls 1

sql_with_paramsMethod · 0.95

Tested by

no test coverage detected