From 8a9806096fb36c2cd9df623c8d5d0fbc29a08b0d Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 6 Aug 2005 20:39:43 +0000 Subject: [PATCH] Fixed #7 -- Fixed subtle admin changelist filter bug in maintaining state. Thanks for the patch, Manuzhai! git-svn-id: http://code.djangoproject.com/svn/django/trunk@417 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/admin/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/views/admin/main.py b/django/views/admin/main.py index 6e24c3331b..42aa36b9f8 100644 --- a/django/views/admin/main.py +++ b/django/views/admin/main.py @@ -230,7 +230,7 @@ def change_list(request, app_label, module_name): elif isinstance(f, meta.DateField): today = datetime.date.today() one_week_ago = today - datetime.timedelta(days=7) - field_generic = '%s__' % field_name + field_generic = '%s__' % f.name filter_template.append('

By %s: