changed icon to text for column

This commit is contained in:
David Kennedy 2024-04-16 12:52:48 -04:00
parent 72a816acda
commit ee961c9cd8
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -682,9 +682,8 @@ class ContactAdmin(ListHeaderAdmin):
def user_exists(self, obj):
"""Check if the Contact has a related User"""
return obj.user is not None
return "Yes" if obj.user is not None else "No"
user_exists.boolean = True # type: ignore
user_exists.short_description = "Is user" # type: ignore
user_exists.admin_order_field = "user" # type: ignore