diff options
author | Tim Graham <timograham@gmail.com> | 2015-10-08 17:17:10 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-10-27 07:57:15 -0400 |
commit | 9c5e272860c076736237d4b280c7c922c46ba273 (patch) | |
tree | 69727482a17b9bf2594c0755ee9f00f5f361cea0 /tests/signals | |
parent | 0b5d32facaa1badc0553934f6935507070cfea1b (diff) | |
download | django-9c5e272860c076736237d4b280c7c922c46ba273.tar.gz |
Fixed #25550 -- Deprecated direct assignment to the reverse side of a related set.
Diffstat (limited to 'tests/signals')
-rw-r--r-- | tests/signals/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/signals/tests.py b/tests/signals/tests.py index 560fd6e8d3..68fdb416f9 100644 --- a/tests/signals/tests.py +++ b/tests/signals/tests.py @@ -222,9 +222,9 @@ class SignalTests(BaseSignalTest): data[:] = [] # Assigning and removing to/from m2m shouldn't generate an m2m signal. - b1.authors = [a1] + b1.authors.set([a1]) self.assertEqual(data, []) - b1.authors = [] + b1.authors.set([]) self.assertEqual(data, []) finally: signals.pre_save.disconnect(pre_save_handler) |