We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 203b0f6 commit 509508bCopy full SHA for 509508b
backend/accounts/admin.py
@@ -8,10 +8,10 @@
8
9
10
class EmailAdmin(admin.ModelAdmin):
11
- list_display = ("email", "user", "is_verified", "is_primary")
12
- list_filter = ("is_verified", "is_primary")
13
- search_fields = ("email", "user__username", "user__first_name", "user__last_name")
14
- readonly_fields = ("user", "email", "is_verified", "is_primary")
+ search_fields = ("value",)
+ readonly_fields = ("value",)
+ list_display = ("value", "user", "primary", "verified")
+ list_filter = ("primary", "verified")
15
16
17
class StudentAdmin(admin.ModelAdmin):
0 commit comments