Optimized an optimise
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
20c8aa2a20
commit
e31c43a360
|
@ -1430,7 +1430,7 @@ class Queries6Tests(TestCase):
|
|||
|
||||
# The annotation->tag link is single values and tag->children links is
|
||||
# multi-valued. So we have to split the exclude filter in the middle
|
||||
# and then optimise the inner query without losing results.
|
||||
# and then optimize the inner query without losing results.
|
||||
self.assertQuerysetEqual(
|
||||
Annotation.objects.exclude(tag__children__name="t2"),
|
||||
['<Annotation: a2>']
|
||||
|
|
Loading…
Reference in New Issue