made is_user column sortable

This commit is contained in:
David Kennedy 2024-04-16 11:12:17 -04:00
parent 77d2c998d3
commit 69c665e4fa
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -686,6 +686,7 @@ class ContactAdmin(ListHeaderAdmin):
user_exists.boolean = True # type: ignore
user_exists.short_description = "Is user" # type: ignore
user_exists.admin_order_field = 'user' # type: ignore
# We name the custom prop 'contact' because linter
# is not allowing a short_description attr on it