--
Ticket URL: <https://code.djangoproject.com/ticket/18305>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Design decision needed
Comment:
Patches for force_update and force_insert fixes available at:
https://github.com/akaariai/django/tree/ticket_18305 (just force_update)
and https://github.com/akaariai/django/tree/ticket_18305_both (contains
also force_insert).
I am marking this DDN, as I am not sure if fixing the force_insert can be
considered backwards compatible. If there were a way to save only the
child model (the restaurant), then this would be easier to accept, as we
could add "do this instead:" to the release notes.
--
Ticket URL: <https://code.djangoproject.com/ticket/18305#comment:1>
* stage: Design decision needed => Accepted
Comment:
Marking as accpted, at least 50% of this is an obvious bug ;)
--
Ticket URL: <https://code.djangoproject.com/ticket/18305#comment:2>
Comment (by Abhijeet Viswa):
I believe this can be closed since from Django 1.5, `save()` does an
update and on failure does an insert. At least for default UUIDs (#29260,
#29129) force_insert is honored for both classes. (I vaguely remember it
to be the same for AutoField in PostgreSQL as well).
--
Ticket URL: <https://code.djangoproject.com/ticket/18305#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
Fixed in 6b4834952dcce0db5cbc1534635c00ff8573a6d8.
--
Ticket URL: <https://code.djangoproject.com/ticket/18305#comment:4>