Skip to content

Commit

Permalink
feat(admin): filter for users w/o profile
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee committed Jan 5, 2024
1 parent c3e127d commit 68054e5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions fiesta/apps/accounts/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@ class UserAdmin(DjangoUserAdmin):
"memberships",
)
list_filter = (
"memberships__section",
"memberships__role",
) + DjangoUserAdmin.list_filter
(
"memberships__section",
"memberships__role",
)
+ DjangoUserAdmin.list_filter
+ (("profile", admin.EmptyFieldListFilter),)
)

ordering = ("-date_joined",)

Expand Down

0 comments on commit 68054e5

Please sign in to comment.