Use correct search_field for person
This commit is contained in:
parent
7cadd647b8
commit
d42505741e
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ from .models import *
|
|||
|
||||
|
||||
class PersonAdmin(admin.ModelAdmin):
|
||||
search_fields = ['title', 'first_name', 'last_name', 'organisation', 'position', 'country', 'contact_email']
|
||||
search_fields = ['title', 'first_name', 'last_name', 'organisation', 'position', 'country__short_name', 'contact_email']
|
||||
|
||||
|
||||
class ResourceAdmin(admin.ModelAdmin):
|
||||
|
|
Loading…
Reference in a new issue