mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-29 14:06:32 +02:00
fixed some casing and associated tests
This commit is contained in:
parent
6f4c63c995
commit
88086a07d8
2 changed files with 5 additions and 5 deletions
|
@ -3016,10 +3016,10 @@ class PortfolioAdmin(ListHeaderAdmin):
|
|||
if domain_count > 0:
|
||||
# Construct the URL to the admin page, filtered by portfolio
|
||||
url = reverse("admin:registrar_domain_changelist") + f"?portfolio={obj.id}"
|
||||
label = "Domain" if domain_count == 1 else "No domains"
|
||||
label = "domain" if domain_count == 1 else "domains"
|
||||
# Create a clickable link with the domain count
|
||||
return format_html('<a href="{}">{} {}</a>', url, domain_count, label)
|
||||
return "No Domains"
|
||||
return "No domains"
|
||||
|
||||
domains.short_description = "Domains" # type: ignore
|
||||
|
||||
|
@ -3030,7 +3030,7 @@ class PortfolioAdmin(ListHeaderAdmin):
|
|||
# Construct the URL to the admin page, filtered by portfolio
|
||||
url = reverse("admin:registrar_domainrequest_changelist") + f"?portfolio={obj.id}"
|
||||
# Create a clickable link with the domain request count
|
||||
return format_html('<a href="{}">{} Domain Requests</a>', url, domain_request_count)
|
||||
return format_html('<a href="{}">{} domain requests</a>', url, domain_request_count)
|
||||
return "No domain requests"
|
||||
|
||||
domain_requests.short_description = "Domain requests" # type: ignore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue