title: Django: Calling .update() on a single model instance retrieved by .get()?
body: <p>I have a function which currently calls <code>Models.object.get()</code>, which returns either 0 or 1 model objects. If it returns 0, I create a new model instance in the <code>except DoesNotExist</code> clause of the function. Otherwise, I would like to update the fields in the pre-existing instance, without creating a new one. I was originally attempting to call <code>.update()</code> on the instance which was found, but <code>.update()</code> seems to be only callable on a QuerySets. How do I get around changing a dozen fields, without calling <code>.filter()</code> and comparing the lengths to know if I have to create or update a pre-existing instance?</p>