summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-10-15 03:47:10 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-10-15 03:47:10 +0000
commit44d51dae687e1edadec96fd8152ed369b34171e2 (patch)
tree5641f4e37be1aad3d38c65a2d33f44431c64803e
parenta3b22d9db07ab21bda752f765b0a4414c73dee57 (diff)
queryset-refactor: Added a test to show that #5261 is no longer a problem. Refs #5261.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6519 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/regressiontests/queries/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regressiontests/queries/models.py b/tests/regressiontests/queries/models.py
index 6748950f21..8c47e623d7 100644
--- a/tests/regressiontests/queries/models.py
+++ b/tests/regressiontests/queries/models.py
@@ -353,5 +353,9 @@ True
>>> ExtraInfo.objects.values('note')
[{'note': 1}, {'note': 2}]
+# Bug 5261
+>>> Note.objects.exclude(Q())
+[<Note: n1>, <Note: n2>, <Note: n3>]
+
"""}