diff --git a/app/admin.py b/app/admin.py index 4efbd1a..8b1662a 100644 --- a/app/admin.py +++ b/app/admin.py @@ -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)