diff --git a/api/custom_auth/mfa/trench/admin.py b/api/custom_auth/mfa/trench/admin.py index aaf617bb7714..c31efb647f40 100644 --- a/api/custom_auth/mfa/trench/admin.py +++ b/api/custom_auth/mfa/trench/admin.py @@ -5,4 +5,18 @@ @admin.register(MFAMethod) class MFAMethodAdmin(admin.ModelAdmin): - pass + list_display = ( + "user_email", + "name", + "is_active", + "is_primary", + "created_at", + "updated_at", + ) + search_fields = ("user__email", "name") + list_filter = ("is_active", "is_primary") + + list_select_related = ("user",) + + def user_email(self, instance: MFAMethod) -> str: + return instance.user.email