mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed warnings per flake8 5.0.0.
This commit is contained in:
@@ -803,8 +803,9 @@ class AdminViewBasicTest(AdminViewBasicTestCase):
|
||||
self.assertIs(response.context["cl"].has_related_field_in_list_display(), False)
|
||||
|
||||
def test_limited_filter(self):
|
||||
"""Ensure admin changelist filters do not contain objects excluded via limit_choices_to.
|
||||
This also tests relation-spanning filters (e.g. 'color__value').
|
||||
"""
|
||||
Admin changelist filters do not contain objects excluded via
|
||||
limit_choices_to.
|
||||
"""
|
||||
response = self.client.get(reverse("admin:admin_views_thing_changelist"))
|
||||
self.assertContains(
|
||||
|
||||
Reference in New Issue
Block a user