fix org in domain table and write a unit test for it

This commit is contained in:
Rachid Mrad 2023-10-18 17:49:49 -04:00
parent 372ead1121
commit 02a9c98a57
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF
2 changed files with 25 additions and 2 deletions

View file

@ -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"