diff --git a/profiles/admin.py b/profiles/admin.py index 27c8d6ec8a7032092072b89fd0c0a51e7e607142..c6d620652d2311c56bc1c2a7292ac4e114255b07 100644 --- a/profiles/admin.py +++ b/profiles/admin.py @@ -13,7 +13,7 @@ class ProfileEmailInline(admin.TabularInline): class ProfileAdmin(admin.ModelAdmin): - search_fields = ['first_name', 'last_name', 'email', 'orcid_id'] + search_fields = ['first_name', 'last_name', 'emails__email', 'orcid_id'] inlines = [ProfileEmailInline] admin.site.register(Profile, ProfileAdmin)