mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 10:07:04 +02:00
lint
This commit is contained in:
parent
7f37bf5b9b
commit
6a343634f4
1 changed files with 2 additions and 4 deletions
|
@ -2965,9 +2965,7 @@ class PortfolioAdmin(ListHeaderAdmin):
|
||||||
def domain_requests(self, obj: models.Portfolio):
|
def domain_requests(self, obj: models.Portfolio):
|
||||||
"""Returns a list of links for each related domain request"""
|
"""Returns a list of links for each related domain request"""
|
||||||
queryset = obj.get_domain_requests()
|
queryset = obj.get_domain_requests()
|
||||||
return self.get_field_links_as_list(
|
return self.get_field_links_as_list(queryset, "domainrequest", link_info_attribute="get_status_display")
|
||||||
queryset, "domainrequest", link_info_attribute="get_status_display"
|
|
||||||
)
|
|
||||||
|
|
||||||
domain_requests.short_description = "Domain requests" # type: ignore
|
domain_requests.short_description = "Domain requests" # type: ignore
|
||||||
|
|
||||||
|
@ -3014,7 +3012,7 @@ class PortfolioAdmin(ListHeaderAdmin):
|
||||||
if seperator:
|
if seperator:
|
||||||
links.append(link)
|
links.append(link)
|
||||||
else:
|
else:
|
||||||
links.append(f'<li>{link}</li>')
|
links.append(f"<li>{link}</li>")
|
||||||
|
|
||||||
# If no seperator is specified, just return an unordered list.
|
# If no seperator is specified, just return an unordered list.
|
||||||
if seperator:
|
if seperator:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue