Branch: refs/heads/stable/1.4.x
  Home:   https://github.com/django/django
  Commit: 37c87b785da934815f1f5ca863d88ac0685bff2a
      
https://github.com/django/django/commit/37c87b785da934815f1f5ca863d88ac0685bff2a
  Author: Anssi Kääriäinen <akaar...@gmail.com>
  Date:   2012-10-28 (Sun, 28 Oct 2012)

  Changed paths:
    M django/db/models/fields/related.py
    M tests/regressiontests/m2m_through_regress/models.py
    M tests/regressiontests/m2m_through_regress/tests.py

  Log Message:
  -----------
  [1.4.x] 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.

Backpatch of 611c4d6f1c24763e5e6e331a5dcf9b610288aaa8



-- 
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.


Reply via email to