diff --git a/django/contrib/admin/templates/admin/change_list_results.html b/django/contrib/admin/templates/admin/change_list_results.html index 92e06c5fff..3f755783dc 100644 --- a/django/contrib/admin/templates/admin/change_list_results.html +++ b/django/contrib/admin/templates/admin/change_list_results.html @@ -1,3 +1,4 @@ +{% if results %} @@ -7,7 +8,10 @@ {% if header.sortable %}{% endif %}{% endfor %} + {% for result in results %} {% for item in result %}{{ item }}{% endfor %} {% endfor %} +
+{% endif %} diff --git a/django/contrib/admin/templates/admin/search_form.html b/django/contrib/admin/templates/admin/search_form.html index 5e868a06b0..c2d6cf59c5 100644 --- a/django/contrib/admin/templates/admin/search_form.html +++ b/django/contrib/admin/templates/admin/search_form.html @@ -2,7 +2,8 @@ {% load i18n %} {% if cl.lookup_opts.admin.search_fields %}
{% endif %}