diff options
| author | David Smith <39445562+smithdc1@users.noreply.github.com> | 2021-12-28 12:42:35 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-28 13:42:35 +0100 |
| commit | 950d697b95e66deb3155896e0b619859693bc8c6 (patch) | |
| tree | 93fafcdd884e59acd1596a923938f0e8e7ffc920 | |
| parent | feeb0685c62a793c55a058584ba1de45e74f80f7 (diff) | |
Refs #31617 -- Removed redundant title text in filter.html.
Unnecessary since 269a76714616fd7ad166a14113f3354bab8d9b65.
Title text should provide advisory information and should not be the
same or very similar to the element text.
| -rw-r--r-- | django/contrib/admin/templates/admin/filter.html | 2 | ||||
| -rw-r--r-- | tests/admin_views/tests.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/admin/templates/admin/filter.html b/django/contrib/admin/templates/admin/filter.html index 35dc553bd8..b5a1bbab0e 100644 --- a/django/contrib/admin/templates/admin/filter.html +++ b/django/contrib/admin/templates/admin/filter.html @@ -3,6 +3,6 @@ <ul> {% for choice in choices %} <li{% if choice.selected %} class="selected"{% endif %}> - <a href="{{ choice.query_string|iriencode }}" title="{{ choice.display }}">{{ choice.display }}</a></li> + <a href="{{ choice.query_string|iriencode }}">{{ choice.display }}</a></li> {% endfor %} </ul> diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 2ea27f5312..1533d746da 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -753,11 +753,11 @@ class AdminViewBasicTest(AdminViewBasicTestCase): ) self.assertContains(response, '<div id="changelist-filter">') self.assertContains( - response, '<a href="?surface__exact=x" title="Horizontal">Horizontal</a>', + response, '<a href="?surface__exact=x">Horizontal</a>', msg_prefix=fail_msg, html=True ) self.assertContains( - response, '<a href="?surface__exact=y" title="Vertical">Vertical</a>', + response, '<a href="?surface__exact=y">Vertical</a>', msg_prefix=fail_msg, html=True ) |
