1
0
mirror of https://github.com/django/django.git synced 2025-10-25 06:36:07 +00:00

Refs #31617 -- Removed redundant title text in filter.html.

Unnecessary since 269a767146.

Title text should provide advisory information and should not be the
same or very similar to the element text.
This commit is contained in:
David Smith
2021-12-28 12:42:35 +00:00
committed by GitHub
parent feeb0685c6
commit 950d697b95
2 changed files with 3 additions and 3 deletions

View File

@@ -3,6 +3,6 @@
<ul> <ul>
{% for choice in choices %} {% for choice in choices %}
<li{% if choice.selected %} class="selected"{% endif %}> <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 %} {% endfor %}
</ul> </ul>

View File

@@ -753,11 +753,11 @@ class AdminViewBasicTest(AdminViewBasicTestCase):
) )
self.assertContains(response, '<div id="changelist-filter">') self.assertContains(response, '<div id="changelist-filter">')
self.assertContains( 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 msg_prefix=fail_msg, html=True
) )
self.assertContains( 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 msg_prefix=fail_msg, html=True
) )