title: Override save model Django save method with return
body: <p>I have this function, I want to make it a method of a Message model class.</p>
  <pre class="lang-py prettyprint-override"><code>def save_message_to_db(message, message_id):
  
      mex = Message(
          message_id=message_id,
          subject=message.subject,
          sender=message.sender.address,
          has_attachments=message.has_attachments,
          sent_date=message.sent,
          received_date=message.received
      )
      mex.save()
  
      return mex
  </code></pre>
  <p>I've tried various ways, but still get errors. I need to return, expecially the id of the object saved.</p>
  <h2>Update</h2>
  <pre><code>@staticmethod
  def save_mex(message, message_id):
      mex = Message(
          message_id=message_id,
          subject=message.subject,
          sender=message.sender.address,
          has_attachments=message.has_attachments,
          sent_date=message.sent,
          received_date=message.received
      )
      mex.save()
  
      return mex
  </code></pre>
  <p>this is the only way I made it work, but this is a work around...
  I get the errors in the Pyacharm IDE, I can not understand how to use the super() in this situation, because I want to pass an object and treat it in this method, not args and kwargs.</p>