1
0
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:
Anssi Kääriäinen
2013-11-30 23:04:34 +02:00
parent 4d219d4cde
commit 7c8b3a32cc
8 changed files with 235 additions and 57 deletions

View File

@@ -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()), '[]')