diff --git a/django/contrib/admin/templatetags/admin_list.py b/django/contrib/admin/templatetags/admin_list.py index af77d762d2..4a3f18cf87 100644 --- a/django/contrib/admin/templatetags/admin_list.py +++ b/django/contrib/admin/templatetags/admin_list.py @@ -178,7 +178,6 @@ def results(cl): yield list(items_for_result(cl,res)) def result_list(cl): - res = list(results(cl)) return {'cl': cl, 'result_headers': list(result_headers(cl)), 'results': list(results(cl))}