print(MyModel.objects.filter(name="my name").query)
from django.db import connection print(connection.queries)