From d7e7faea3f921b96a03edeeefbd553b64c5a80fc Mon Sep 17 00:00:00 2001 From: Roni Choudhury Date: Thu, 19 Dec 2024 14:12:48 -0500 Subject: [PATCH] Enbale User search by GitHub username --- dandiapi/api/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dandiapi/api/admin.py b/dandiapi/api/admin.py index f7fbbf62f..7587db1ea 100644 --- a/dandiapi/api/admin.py +++ b/dandiapi/api/admin.py @@ -47,7 +47,7 @@ class SocialAccountInline(TabularInline): class UserAdmin(BaseUserAdmin): list_select_related = ['metadata'] list_display = ['email', 'first_name', 'last_name', 'github_username', 'status', 'date_joined'] - search_fields = ['email', 'first_name', 'last_name'] + search_fields = ['email', 'first_name', 'last_name', 'socialaccount__extra_data__login'] inlines = ( UserMetadataInline, SocialAccountInline,