DJANGO: query as sql
To view a query as sql in shell
in versions before multiple db:
query.as_sql()
Now:
query.get_compiler('default').as_sql()
To view a query as sql in shell
in versions before multiple db:
query.as_sql()
Now:
query.get_compiler('default').as_sql()
Comments
comments powered by Disqus