mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 17:17:02 +02:00
fix org in domain table and write a unit test for it
This commit is contained in:
parent
372ead1121
commit
02a9c98a57
2 changed files with 25 additions and 2 deletions
|
@ -721,7 +721,7 @@ class DomainAdmin(ListHeaderAdmin):
|
|||
]
|
||||
|
||||
def organization_type(self, obj):
|
||||
return obj.domain_info.organization_type
|
||||
return obj.domain_info.get_organization_type_display()
|
||||
|
||||
organization_type.admin_order_field = ( # type: ignore
|
||||
"domain_info__organization_type"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue