Skip to content

Commit

Permalink
Enbale User search by GitHub username
Browse files Browse the repository at this point in the history
  • Loading branch information
waxlamp committed Dec 19, 2024
1 parent c467f07 commit d7e7fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandiapi/api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d7e7fae

Please sign in to comment.