From f28555988945bbf4342f85b6adec97d7090a1697 Mon Sep 17 00:00:00 2001 From: Alexander J Sheehan Date: Wed, 8 May 2024 17:47:10 +0000 Subject: [PATCH] fix: allowing for search lookup of group members in django admin --- enterprise/admin/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/enterprise/admin/__init__.py b/enterprise/admin/__init__.py index a5b8d3e929..3e223b9389 100644 --- a/enterprise/admin/__init__.py +++ b/enterprise/admin/__init__.py @@ -1203,9 +1203,10 @@ class EnterpriseGroupMembershipAdmin(admin.ModelAdmin): list_display = ('group', 'membership_user',) search_fields = ( 'uuid', - 'group__enterprise_customer_user', - 'enterprise_customer_user', - 'pending_enterprise_customer_user', + 'group__uuid', + 'group__enterprise_customer__uuid', + 'enterprise_customer_user__id', + 'pending_enterprise_customer_user__user_email', ) autocomplete_fields = ( 'group',