From b26331d6ee5e85336d35c826c2f266061f664811 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 20 Jul 2006 20:31:59 +0000 Subject: [PATCH] Fixed #2342 -- Made small fix to DateFieldFilterSpec. Thanks, Alex Dedul git-svn-id: http://code.djangoproject.com/svn/django/trunk@3403 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/filterspecs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/filterspecs.py b/django/contrib/admin/filterspecs.py index 25376be12a..8c2b82147e 100644 --- a/django/contrib/admin/filterspecs.py +++ b/django/contrib/admin/filterspecs.py @@ -123,7 +123,7 @@ class DateFieldFilterSpec(FilterSpec): def choices(self, cl): for title, param_dict in self.links: yield {'selected': self.date_params == param_dict, - 'query_string': cl.get_query_string(param_dict, self.field_generic), + 'query_string': cl.get_query_string(param_dict, [self.field_generic]), 'display': title} FilterSpec.register(lambda f: isinstance(f, models.DateField), DateFieldFilterSpec)