summaryrefslogtreecommitdiff
path: root/tests/many_to_many
diff options
context:
space:
mode:
authorLoic Bistuer <loic.bistuer@gmail.com>2014-03-30 18:48:27 +0700
committerLoic Bistuer <loic.bistuer@gmail.com>2014-03-30 18:48:27 +0700
commitda7ab8728c795e1853cea4215469ae3649664c6d (patch)
treebcfd74c4014ea85bb87f1a190c3d2950899e79d3 /tests/many_to_many
parenta2407c9577c400bf9931ff1db1d7757afa378162 (diff)
downloaddjango-da7ab8728c795e1853cea4215469ae3649664c6d.tar.gz
Fixed mistake in tests from commit 2039908. Refs #19816.
Diffstat (limited to 'tests/many_to_many')
-rw-r--r--tests/many_to_many/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/many_to_many/tests.py b/tests/many_to_many/tests.py
index 23c6cd543e..adb897840a 100644
--- a/tests/many_to_many/tests.py
+++ b/tests/many_to_many/tests.py
@@ -376,7 +376,7 @@ class ManyToManyTests(TestCase):
# ManyRelatedObjectsDescriptor.__set__. Refs #19816.
self.a1.publications = [self.p1, self.p2]
- qs = self.a1.publications.filter(id=self.a1.id)
+ qs = self.a1.publications.filter(title='The Python Journal')
self.a1.publications = qs
self.assertEqual(1, self.a1.publications.count())
@@ -388,7 +388,7 @@ class ManyToManyTests(TestCase):
# ReverseManyRelatedObjectsDescriptor.__set__. Refs #19816.
self.p1.article_set = [self.a1, self.a2]
- qs = self.p1.article_set.filter(id=self.p1.id)
+ qs = self.p1.article_set.filter(headline='Django lets you build Web apps easily')
self.p1.article_set = qs
self.assertEqual(1, self.p1.article_set.count())