diff --git a/django/contrib/admin/templates/admin/change_list_results.html b/django/contrib/admin/templates/admin/change_list_results.html index 7eeba04f7c..f8099cecbe 100644 --- a/django/contrib/admin/templates/admin/change_list_results.html +++ b/django/contrib/admin/templates/admin/change_list_results.html @@ -10,7 +10,7 @@ {% for header in result_headers %} - + {% if header.sortable %} {% if header.sort_priority > 0 %}
diff --git a/tests/admin_views/templates/admin/admin_views/article/change_list_results.html b/tests/admin_views/templates/admin/admin_views/article/change_list_results.html index 775641233f..2eb7fe55b3 100644 --- a/tests/admin_views/templates/admin/admin_views/article/change_list_results.html +++ b/tests/admin_views/templates/admin/admin_views/article/change_list_results.html @@ -10,7 +10,7 @@ {% for header in result_headers %} - + {% if header.sortable %} {% if header.sort_priority > 0 %}
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 4d3fade3c9..5fe6919ea8 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -1006,26 +1006,26 @@ class AdminViewBasicTest(AdminViewBasicTestCase): ) response = self.client.get(reverse('admin6:admin_views_article_changelist')) for field_name in expected_sortable_fields: - self.assertContains(response, '' % field_name) + self.assertContains(response, '' % field_name) for field_name in expected_not_sortable_fields: - self.assertContains(response, '' % field_name) + self.assertContains(response, '' % field_name) def test_get_sortable_by_columns_subset(self): response = self.client.get(reverse('admin6:admin_views_actor_changelist')) - self.assertContains(response, '') - self.assertContains(response, '') + self.assertContains(response, '') + self.assertContains(response, '') def test_sortable_by_no_column(self): expected_not_sortable_fields = ('title', 'book') response = self.client.get(reverse('admin6:admin_views_chapter_changelist')) for field_name in expected_not_sortable_fields: - self.assertContains(response, '' % field_name) - self.assertNotContains(response, '' % field_name) + self.assertNotContains(response, '') - self.assertNotContains(response, '') + self.assertNotContains(response, '