#23611: update_or_create doesn't retain related manager reference -------------------------------------+------------------------------------- Reporter: ryanhiebert | Owner: aericson Type: Bug | Status: closed Component: Database layer | Version: 1.7 (models, ORM) | Resolution: fixed Severity: Normal | Triage Stage: Accepted Keywords: | Needs documentation: 0 Has patch: 1 | Patch needs improvement: 0 Needs tests: 0 | UI/UX: 0 Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by Loic Bistuer <loic.bistuer@…>): In [changeset:"fa4b6482df08d308fe88044b8c8bf981c6225fb8"]: {{{ #!CommitTicketReference repository="" revision="fa4b6482df08d308fe88044b8c8bf981c6225fb8" [1.7.x] Fixed #23611 -- update_or_create failing from a related manager Added update_or_create to RelatedManager, ManyRelatedManager and GenericRelatedObjectManager. Added missing get_or_create to GenericRelatedObjectManager. Conflicts: tests/generic_relations/tests.py tests/get_or_create/tests.py Backport of ed37f7e979 from master }}} -- Ticket URL: <https://code.djangoproject.com/ticket/23611#comment:16> 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/069.8b2d3bbbba9bc452241a1ad3d69d4e1c%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.