#18823: Clear with a M2M field with a through model -------------------------------------+------------------------------------- Reporter: anonymous | Owner: nobody Type: Bug | Status: closed Component: Database layer | Version: 1.4 (models, ORM) | Resolution: fixed Severity: Release blocker | Triage Stage: Accepted Keywords: | Needs documentation: 0 Has patch: 1 | Patch needs improvement: 0 Needs tests: 0 | UI/UX: 0 Easy pickings: 0 | -------------------------------------+------------------------------------- Changes (by Anssi Kääriäinen <akaariai@…>):
* status: new => closed * resolution: => fixed Comment: In [changeset:"611c4d6f1c24763e5e6e331a5dcf9b610288aaa8"]: {{{ #!CommitTicketReference repository="" revision="611c4d6f1c24763e5e6e331a5dcf9b610288aaa8" Fixed #18823 -- Ensured m2m.clear() works when using through+to_field There was a potential data-loss issue involved -- when clearing instance's m2m assignments it was possible some other instance's m2m data was deleted instead. This commit also improved None handling for to_field cases. }}} -- Ticket URL: <https://code.djangoproject.com/ticket/18823#comment:11> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.