mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 21:16:28 +02:00
linter fixes
This commit is contained in:
parent
ec39b159ec
commit
24354fd7f1
2 changed files with 5 additions and 5 deletions
|
@ -2442,7 +2442,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
obj_id = domain.id
|
obj_id = domain.id
|
||||||
change_url = reverse("admin:%s_%s_change" % (app_label, model_name), args=[obj_id])
|
change_url = reverse("admin:%s_%s_change" % (app_label, model_name), args=[obj_id])
|
||||||
|
|
||||||
message = f"<li>The status of this domain request cannot be changed because it has been joined to a domain in Ready status: " # noqa
|
message = f"<li>The status of this domain request cannot be changed because it has been joined to a domain in Ready status: " # noqa
|
||||||
message += f"<a href='{change_url}'>{domain}</a></li>"
|
message += f"<a href='{change_url}'>{domain}</a></li>"
|
||||||
|
|
||||||
message_html = mark_safe(message) # nosec
|
message_html = mark_safe(message) # nosec
|
||||||
|
@ -2564,6 +2564,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
qs = qs.filter(portfolio=portfolio_id)
|
qs = qs.filter(portfolio=portfolio_id)
|
||||||
return qs
|
return qs
|
||||||
|
|
||||||
|
|
||||||
class TransitionDomainAdmin(ListHeaderAdmin):
|
class TransitionDomainAdmin(ListHeaderAdmin):
|
||||||
"""Custom transition domain admin class."""
|
"""Custom transition domain admin class."""
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,6 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
User.objects.all().delete()
|
User.objects.all().delete()
|
||||||
AllowedEmail.objects.all().delete()
|
AllowedEmail.objects.all().delete()
|
||||||
|
|
||||||
|
|
||||||
@less_console_noise_decorator
|
@less_console_noise_decorator
|
||||||
def test_domain_request_senior_official_is_alphabetically_sorted(self):
|
def test_domain_request_senior_official_is_alphabetically_sorted(self):
|
||||||
"""Tests if the senior offical dropdown is alphanetically sorted in the django admin display"""
|
"""Tests if the senior offical dropdown is alphanetically sorted in the django admin display"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue