title: How can i get query for .save() in django?
body: <p>I am updating a django model object. After setting value for each attribute when i call <code>obj.save()</code> it gaves me <code>OperationalError: (2006, 'MySQL server has gone away')</code>. I am desperate to know what is causing the following error. How can i get the the query?? As when save method fail because of above error it does not log query.
  Any suggestions?? Thanks in advance.</p>