The concern would be needing to check for fields that use something like
`auto_now`.
--
Ticket URL: <https://code.djangoproject.com/ticket/34282>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: assigned => closed
* resolution: => wontfix
Comment:
Thanks for this ticket. An empty set of `defaults` is always a subset of
`concrete_field_names` so
[https://github.com/django/django/blob/0fd5d16c222583dd68128b70b17e461d4decda8c/django/db/models/query.py#L971-L972
the "else" branch] is not reachable in this case. We could skip
[https://github.com/django/django/blob/0fd5d16c222583dd68128b70b17e461d4decda8c/django/db/models/query.py#L970
save()] when `update_fields` is empty but this would be backward
incompatible e.g. for users with database triggers. I'm not convinced it's
worth changing, users who don't want to update any fields should use
`get_or_create()` instead. Hope that makes sense.
--
Ticket URL: <https://code.djangoproject.com/ticket/34282#comment:1>