From 3691613093a5fbf450fbd98ad33c851f49d32257 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 25 Feb 2008 06:17:16 +0000 Subject: [PATCH] queryset-refactor: Added a test to show that #6180 is fixed. Refs #6180. git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7154 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/queries/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/regressiontests/queries/models.py b/tests/regressiontests/queries/models.py index 72f543dab8..3908d51f66 100644 --- a/tests/regressiontests/queries/models.py +++ b/tests/regressiontests/queries/models.py @@ -515,7 +515,7 @@ Multiple filter statements are joined using "AND" all the time. >>> Author.objects.filter(Q(extra__note=n1)|Q(item__note=n3)).filter(id=a1.id) [] -Bug #6203 +Bug #6180, #6203 >>> Item.objects.count() 4 >>> Item.objects.dates('created', 'month').count() @@ -524,6 +524,8 @@ Bug #6203 2 >>> len(Item.objects.dates('created', 'day')) 2 +>>> Item.objects.dates('created', 'day')[0] +datetime.datetime(2007, 12, 19, 0, 0) Test that parallel iterators work.