fixed hyperlink

This commit is contained in:
CocoByte 2024-12-25 20:44:40 -07:00
parent 1c280905de
commit 080890bf45
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F

View file

@ -1995,7 +1995,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
@admin.display(description=_("Requested Domain")) @admin.display(description=_("Requested Domain"))
def custom_requested_domain(self, obj): def custom_requested_domain(self, obj):
# Example: Show different icons based on `status` # Example: Show different icons based on `status`
url = reverse("admin:registrar_domainrequest_changelist") + f"?portfolio={obj.id}" url = reverse("admin:registrar_domainrequest_changelist") + f"{obj.id}"
text = obj.requested_domain text = obj.requested_domain
if obj.portfolio: if obj.portfolio:
return format_html('<a href="{}"><img src="/public/admin/img/icon-yes.svg"> {}</a>', url, text) return format_html('<a href="{}"><img src="/public/admin/img/icon-yes.svg"> {}</a>', url, text)