1
0
mirror of https://github.com/django/django.git synced 2025-03-22 07:10:45 +00:00
Anssi Kääriäinen f105fbe52b [1.5.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
2012-10-28 17:34:14 +02:00
..