membershipworks: Improve admin listing for Flags

This commit is contained in:
Adam Goldsmith 2023-01-19 19:02:03 -05:00
parent fdfb557dd1
commit 03ccf73d81

View File

@ -27,3 +27,6 @@ class MemberAdmin(ReadOnlyAdmin):
@admin.register(Flag)
class FlagAdmin(ReadOnlyAdmin):
inlines = [MemberFlagInline]
list_display = ["name", "type"]
list_filter = ["type"]
search_fields = ["name"]