mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-28 21:46:33 +02:00
fix warning html
This commit is contained in:
parent
f277efc6c4
commit
ee2bff6492
1 changed files with 10 additions and 10 deletions
|
@ -2442,16 +2442,16 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
|||
obj_id = domain.id
|
||||
change_url = reverse("admin:%s_%s_change" % (app_label, model_name), args=[obj_id])
|
||||
|
||||
message = format_html(
|
||||
"<li>The status of this domain request cannot be changed because it has been joined to a domain in Ready status:"
|
||||
"<a href='{}'>{}</a></li>",
|
||||
mark_safe(change_url),
|
||||
escape(str(domain))
|
||||
)
|
||||
messages.warning(
|
||||
request,
|
||||
message_html,
|
||||
)
|
||||
message = format_html(
|
||||
"The status of this domain request cannot be changed because it has been joined to a domain in Ready status:"
|
||||
"<a href='{}'>{}</a>",
|
||||
mark_safe(change_url),
|
||||
escape(str(domain))
|
||||
)
|
||||
messages.warning(
|
||||
request,
|
||||
message,
|
||||
)
|
||||
|
||||
obj = self.get_object(request, object_id)
|
||||
self.display_restricted_warning(request, obj)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue