#20988: Model.save() refactoring incompatibilities -------------------------------------+------------------------------------- Reporter: akaariai | Owner: nobody Type: | Status: closed Cleanup/optimization | Version: master Component: Database layer | Resolution: fixed (models, ORM) | Triage Stage: Accepted Severity: Release blocker | Needs documentation: 0 Keywords: | Patch needs improvement: 0 Has patch: 0 | UI/UX: 0 Needs tests: 0 | Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by Anssi Kääriäinen <akaariai@…>): In [changeset:"76e38a21777243fec58c640d617bb71a251c5ba1"]: {{{ #!CommitTicketReference repository="" revision="76e38a21777243fec58c640d617bb71a251c5ba1" [1.6.x] Fixed #20988 -- Added model meta option select_on_save The option can be used to force pre 1.6 style SELECT on save behaviour. This is needed in case the database returns zero updated rows even if there is a matching row in the DB. One such case is PostgreSQL update trigger that returns NULL. Reviewed by Tim Graham. Refs #16649 Backport of e973ee6a9879969b8ae05bb7ff681172cc5386a5 from master Conflicts: django/db/models/options.py tests/basic/tests.py }}} -- Ticket URL: <https://code.djangoproject.com/ticket/20988#comment:4> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.cd6859b22ba5be0aa183202a983e37c5%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.