mirror of
https://github.com/django/django.git
synced 2025-07-07 11:19:12 +00:00
queryset-refactor: Added a test to show we can now query for empty reverse
relationships. Refs #2400. git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
91e8062ff5
commit
93b4199912
@ -44,6 +44,8 @@ __test__ = {'API_TESTS':"""
|
||||
>>> t3.save()
|
||||
>>> t4 = Tag(name='t4', parent=t3)
|
||||
>>> t4.save()
|
||||
>>> t5 = Tag(name='t5', parent=t3)
|
||||
>>> t5.save()
|
||||
|
||||
|
||||
>>> a1 = Author(name='a1', num=1001)
|
||||
@ -194,5 +196,11 @@ AssertionError: Cannot combine queries on two different base models.
|
||||
Bug #3141
|
||||
>>> Author.objects.extra(select={'foo': '1'}).count()
|
||||
4
|
||||
|
||||
Bug #2400
|
||||
>>> Author.objects.filter(item__isnull=True)
|
||||
[<Author: a3>]
|
||||
>>> Tag.objects.filter(item__isnull=True)
|
||||
[<Tag: t5>]
|
||||
"""}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user