From e0ce5e83fcc7637e82bd60d651a0389969aaf1ee Mon Sep 17 00:00:00 2001 From: Mads Nylund <73914541+MadsNyl@users.noreply.github.com> Date: Fri, 22 Sep 2023 09:22:08 +0200 Subject: [PATCH] added search bar for admin site for memberships (#704) --- app/group/admin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/group/admin.py b/app/group/admin.py index c9242acf4..44eda2aa4 100644 --- a/app/group/admin.py +++ b/app/group/admin.py @@ -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):