mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 21:16:28 +02:00
Update src/registrar/admin.py
Co-authored-by: zandercymatics <141044360+zandercymatics@users.noreply.github.com>
This commit is contained in:
parent
24354fd7f1
commit
f277efc6c4
1 changed files with 6 additions and 4 deletions
|
@ -2442,10 +2442,12 @@ 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"<a href='{change_url}'>{domain}</a></li>"
|
||||
|
||||
message_html = mark_safe(message) # nosec
|
||||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue