def sql_with_params(self):
        return self.get_compiler(DEFAULT_DB_ALIAS).as_sql()
Returns the query as an SQL string and the parameters that will be
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/db/models/sql/query.py/Query.sql_with_params