* status: new => closed
* type: Cleanup/optimization => New feature
* resolution: => wontfix
Comment:
Thanks for this ticket, however, this change would be backward
incompatible as `get_or_create()` is
[https://docs.djangoproject.com/en/stable/ref/models/querysets/#update-or-
create documented] to be a shortcut for the pattern:
{{{#!python
try:
<<get>>
<<save>>
except DoesNotExist:
<<update>>
}}}
With your proposition `save()` would not be called anymore (and folks have
a custom logic in their `save()` methods). Moreover support for "UPSERT"
varies in databases, and it's already possible to do this with passing a
single object to the `bulk_create()`.
--
Ticket URL: <https://code.djangoproject.com/ticket/34996#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.