Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

queryset-refactor: Added a test to show we can now query for empty re…

…verse

relationships. Refs #2400.


git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 93b4199912f2638a5119c498b086fab304d569ae 1 parent 91e8062
@malcolmt malcolmt authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/regressiontests/queries/models.py
View
8 tests/regressiontests/queries/models.py
@@ -44,6 +44,8 @@ def __unicode__(self):
>>> 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 @@ def __unicode__(self):
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>]
"""}

0 comments on commit 93b4199

Please sign in to comment.
Something went wrong with that request. Please try again.