Add admin search fields
This commit is contained in:
parent
60cbf42997
commit
7bfb067623
1 changed files with 6 additions and 1 deletions
|
@ -1,8 +1,13 @@
|
|||
from django.contrib import admin
|
||||
from .models import *
|
||||
|
||||
|
||||
class PersonAdmin(admin.ModelAdmin):
|
||||
search_fields = ['title', 'first_name', 'last_name', 'organisation', 'position', 'country', 'contact_email']
|
||||
|
||||
|
||||
# Register your models here.
|
||||
admin.site.register(Person)
|
||||
admin.site.register(Person, PersonAdmin)
|
||||
admin.site.register(Resource)
|
||||
admin.site.register(Range)
|
||||
admin.site.register(Method)
|
||||
|
|
Loading…
Reference in a new issue