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/one_to_one | |
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/one_to_one')
-rw-r--r-- | tests/one_to_one/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/one_to_one/tests.py b/tests/one_to_one/tests.py index ee5d7415e3..f5629a5268 100644 --- a/tests/one_to_one/tests.py +++ b/tests/one_to_one/tests.py @@ -171,7 +171,7 @@ class OneToOneTests(TestCase): """ f = Favorites(name='Fred') f.save() - f.restaurants = [self.r1] + f.restaurants.set([self.r1]) self.assertQuerysetEqual( f.restaurants.all(), ['<Restaurant: Demon Dogs the restaurant>'] |