mirror of
https://github.com/django/django.git
synced 2025-10-30 00:56:09 +00:00
Implemented nested lookups
But there is no support of using lookups outside filtering yet.
This commit is contained in:
@@ -41,9 +41,6 @@ class NullQueriesTests(TestCase):
|
||||
# Can't use None on anything other than __exact
|
||||
self.assertRaises(ValueError, Choice.objects.filter, id__gt=None)
|
||||
|
||||
# Can't use None on anything other than __exact
|
||||
self.assertRaises(ValueError, Choice.objects.filter, foo__gt=None)
|
||||
|
||||
# Related managers use __exact=None implicitly if the object hasn't been saved.
|
||||
p2 = Poll(question="How?")
|
||||
self.assertEqual(repr(p2.choice_set.all()), '[]')
|
||||
|
||||
Reference in New Issue
Block a user