diff --git a/src/accounts/admin.py b/src/accounts/admin.py index 41faa02..2710bfb 100644 --- a/src/accounts/admin.py +++ b/src/accounts/admin.py @@ -28,12 +28,13 @@ def is_token_valid_display(self, instance): @admin.register(Account) class AccountAdminView(admin.ModelAdmin): list_display = ( - "email", - "is_active", "unique_identifier", + "email", "username", "is_confirmed", "is_verified", + "is_active", + "is_staff", "legacy_id", ) fieldsets = ( @@ -57,9 +58,16 @@ class AccountAdminView(admin.ModelAdmin): "is_active", "is_confirmed", "is_verified", + "is_staff", ), }, ), ("Legacy", {"classes": ("wide",), "fields": ("legacy_id",)}), ) inlines = [AccountConfirmationInline, PasswordResetRequestInline] + list_filter = ("is_staff", "is_verified", "is_confirmed", "is_active") + search_fields = ( + "email__icontains", + "username__icontains", + "unique_identifier__icontains", + )