linter fixes

This commit is contained in:
matthewswspence 2024-12-17 13:03:22 -06:00
parent ec39b159ec
commit 24354fd7f1
No known key found for this signature in database
GPG key ID: FB458202A7852BA4
2 changed files with 5 additions and 5 deletions

View file

@ -2442,7 +2442,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
obj_id = domain.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_html = mark_safe(message) # nosec
@ -2450,7 +2450,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
request,
message_html,
)
obj = self.get_object(request, object_id)
self.display_restricted_warning(request, obj)
@ -2564,6 +2564,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
qs = qs.filter(portfolio=portfolio_id)
return qs
class TransitionDomainAdmin(ListHeaderAdmin):
"""Custom transition domain admin class."""