mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 09:37:03 +02:00
Add simple unit tests
This commit is contained in:
parent
fdc5236968
commit
a847b07ef7
5 changed files with 90 additions and 4 deletions
|
@ -2938,7 +2938,9 @@ class PortfolioAdmin(ListHeaderAdmin):
|
|||
"""Returns a comma seperated list of links for each related domain request"""
|
||||
queryset = obj.get_domain_requests()
|
||||
sep = '<div class="display-block margin-top-1"></div>'
|
||||
return self.get_field_links_as_csv(queryset, "domainrequest", link_info_attribute="get_status_display", seperator=sep)
|
||||
return self.get_field_links_as_csv(
|
||||
queryset, "domainrequest", link_info_attribute="get_status_display", seperator=sep
|
||||
)
|
||||
|
||||
domain_requests.short_description = "Domain requests"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue