diff --git a/app/admin.py b/app/admin.py index 8b1662a..c4e7a02 100644 --- a/app/admin.py +++ b/app/admin.py @@ -6,11 +6,23 @@ class PersonAdmin(admin.ModelAdmin): search_fields = ['title', 'first_name', 'last_name', 'organisation', 'position', 'country', 'contact_email'] +class ResourceAdmin(admin.ModelAdmin): + search_fields = ['title', 'url', 'citation', 'abstract'] + + +class RangeAdmin(admin.ModelAdmin): + search_fields = ['name', 'countries'] + + +class FieldAdmin(admin.ModelAdmin): + search_fields = ['name'] + + # Register your models here. admin.site.register(Person, PersonAdmin) -admin.site.register(Resource) -admin.site.register(Range) +admin.site.register(Resource, ResourceAdmin) +admin.site.register(Range, RangeAdmin) admin.site.register(Method) admin.site.register(Scale) admin.site.register(Taxon) -admin.site.register(Field) +admin.site.register(Field, FieldAdmin)