Skip to content

Commit

Permalink
Merge pull request #2119 from dandi/admin-github-search
Browse files Browse the repository at this point in the history
Enable User search by GitHub username
  • Loading branch information
waxlamp authored Dec 19, 2024
2 parents c467f07 + d7e7fae commit 831ddd7
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 831ddd7

Please sign in to comment.