Author: mtredinnick
Date: 2007-10-13 22:46:20 -0500 (Sat, 13 Oct 2007)
New Revision: 6503
Modified:
django/branches/queryset-refactor/tests/regressiontests/queries/models.py
Log:
queryset-refactor: Added a test to show we can now query for empty reverse
relationships. Refs #2400.
Modified:
django/branches/queryset-refactor/tests/regressiontests/queries/models.py
===================================================================
--- django/branches/queryset-refactor/tests/regressiontests/queries/models.py
2007-10-14 03:46:07 UTC (rev 6502)
+++ django/branches/queryset-refactor/tests/regressiontests/queries/models.py
2007-10-14 03:46:20 UTC (rev 6503)
@@ -44,6 +44,8 @@
>>> 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 @@
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>]
"""}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---