mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 19:20:47 +02:00
Tweak domain type display by using get_organization_type_display and pulling federal_type if applicable
This commit is contained in:
parent
d624c22088
commit
8e768112f3
2 changed files with 9 additions and 6 deletions
|
@ -19,7 +19,10 @@ def export_domains_to_writer(writer, columns, sort_fields, filter_condition):
|
|||
# create a dictionary of fields which can be included in output
|
||||
FIELDS = {
|
||||
"Domain name": domainInfo.domain.name,
|
||||
"Domain type": domainInfo.organization_type,
|
||||
"Domain type": domainInfo.get_organization_type_display()
|
||||
+ " - " + domainInfo.federal_type
|
||||
if domainInfo.federal_type
|
||||
else domainInfo.get_organization_type_display(),
|
||||
"Federal agency": domainInfo.federal_agency,
|
||||
"Organization name": domainInfo.organization_name,
|
||||
"City": domainInfo.city,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue