title: Django model method - create_or_update
body: <p>Similar to <a href="https://docs.djangoproject.com/en/1.5/ref/models/querysets/#get-or-create" rel="noreferrer"><code>get_or_create</code></a>, I would like to be able to <code>update_or_create</code> in Django.</p>
  
  <p>Until now, I have using an approaching similar to how <a href="https://stackoverflow.com/a/6382929/1287714">@Daniel Roseman does it here</a>. However, I'd like to do this more succinctly as a model method.</p>
  
  <p><a href="http://djangosnippets.org/snippets/1114/" rel="noreferrer">This snippet</a> is quite old and I was wondering if there is a better way to do this in more recent version of Django. </p>