mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #25508 -- Modified QuerySet.__repr__() to disambiguate it from a list.
This commit is contained in:
parent
3543fec3b7
commit
e0837f2cb1
20 changed files with 185 additions and 184 deletions
|
@ -47,7 +47,7 @@ class NullQueriesTests(TestCase):
|
|||
|
||||
# Related managers use __exact=None implicitly if the object hasn't been saved.
|
||||
p2 = Poll(question="How?")
|
||||
self.assertEqual(repr(p2.choice_set.all()), '[]')
|
||||
self.assertEqual(repr(p2.choice_set.all()), '<QuerySet []>')
|
||||
|
||||
def test_reverse_relations(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue