I create a set of Django queries manually and just want to use Django ORM to read the resulting SQL Queryet.query without getting into my DB.
I know that Django quersets are lazy, and I see all the operating systems that trigger the query calculation:
https://docs.djangoproject.com/en/1.10/ref/models/querysets/#when-querysets-are-evaluated
But ... what if I just want to check my code, it simply builds the guts of the queries, but does NOT evaluate and does not hit my database unintentionally? Are there any attributes of the request object that I can use to verify that it was not rated without an actual rating?
source share