Skip to content
Browse files

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
  • Loading branch information...
1 parent c19ef69 commit b26331d6ee5e85336d35c826c2f266061f664811 @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/filterspecs.py
View
2 django/contrib/admin/filterspecs.py
@@ -123,7 +123,7 @@ def title(self):
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)

0 comments on commit b26331d

Please sign in to comment.
Something went wrong with that request. Please try again.