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/get_object_or_404 | |
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/get_object_or_404')
-rw-r--r-- | tests/get_object_or_404/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/get_object_or_404/tests.py b/tests/get_object_or_404/tests.py index a5e3d2d8b8..05bea661ed 100644 --- a/tests/get_object_or_404/tests.py +++ b/tests/get_object_or_404/tests.py @@ -16,7 +16,7 @@ class GetObjectOr404Tests(TestCase): self.assertRaises(Http404, get_object_or_404, Article, title="Foo") article = Article.objects.create(title="Run away!") - article.authors = [a1, a2] + article.authors.set([a1, a2]) # get_object_or_404 can be passed a Model to query. self.assertEqual( get_object_or_404(Article, title__contains="Run"), |