You can try
from django.db import connection
connection.queries
it will provide you with a list of all requests that are executed through Django (including .save ()). To get your request, you can do
try:
modelObj.save()
except OperationalError:
from django.db import connection
print connection.queries[-1]
source
share