From e9364c06d6be32dc37e09620105e970472587d87 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 15 Oct 2007 00:48:40 +0000 Subject: [PATCH] queryset-refactor: Added a test to show that #3037 is really fixed. Refs #3037. git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6514 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/queries/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/regressiontests/queries/models.py b/tests/regressiontests/queries/models.py index 3a80e2da61..048ced9543 100644 --- a/tests/regressiontests/queries/models.py +++ b/tests/regressiontests/queries/models.py @@ -325,5 +325,9 @@ Bugs #2874, #3002 # entries in the SQL. The two Note items should be different. >>> qs[0].note, qs[0].creator.extra.note (, ) + +Bug #3037 +>>> Item.objects.filter(Q(creator__name='a3', name='two')|Q(creator__name='a4', name='four')) +[] """}