summaryrefslogtreecommitdiff
path: root/tests/one_to_one
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-10-08 17:17:10 -0400
committerTim Graham <timograham@gmail.com>2015-10-27 07:57:15 -0400
commit9c5e272860c076736237d4b280c7c922c46ba273 (patch)
tree69727482a17b9bf2594c0755ee9f00f5f361cea0 /tests/one_to_one
parent0b5d32facaa1badc0553934f6935507070cfea1b (diff)
downloaddjango-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.py2
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>']