diff --git a/django/views/admin/main.py b/django/views/admin/main.py index 6e24c3331bc..42aa36b9f8d 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('