Skip to content

Commit

Permalink
added search bar for admin site for memberships (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsNyl authored Sep 22, 2023
1 parent de0ec41 commit e0ce5e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/group/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ class MembershipAdmin(admin.ModelAdmin):
"user",
)

search_fields = [
"user__first_name",
"user__last_name"
]


@admin.register(models.MembershipHistory)
class MembershipHistoryAdmin(admin.ModelAdmin):
Expand Down

0 comments on commit e0ce5e8

Please sign in to comment.