mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
parent
a2407c9577
commit
da7ab8728c
2 changed files with 3 additions and 3 deletions
|
@ -92,7 +92,7 @@ class ManyToOneNullTests(TestCase):
|
|||
# ForeignRelatedObjectsDescriptor.__set__. Refs #19816.
|
||||
self.r2.article_set = [self.a2, self.a3]
|
||||
|
||||
qs = self.r2.article_set.filter(id=self.a2.id)
|
||||
qs = self.r2.article_set.filter(headline="Second")
|
||||
self.r2.article_set = qs
|
||||
|
||||
self.assertEqual(1, self.r2.article_set.count())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue