Skip to content

Commit 509508b

Browse files
authored
🐛 Fix email view (#144)
* 🐛 Fix email view * 🎨 Lint * 🎨 Lint * 🐛 Fix email view * 🐛 Fix email view * 🐛 Fix email view
1 parent 203b0f6 commit 509508b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backend/accounts/admin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99

1010
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")
11+
search_fields = ("value",)
12+
readonly_fields = ("value",)
13+
list_display = ("value", "user", "primary", "verified")
14+
list_filter = ("primary", "verified")
1515

1616

1717
class StudentAdmin(admin.ModelAdmin):

0 commit comments

Comments
 (0)