gmba_django/app/admin.py

17 lines
445 B
Python
Raw Normal View History

from django.contrib import admin
2021-07-28 04:20:54 +00:00
from .models import *
2021-09-23 13:43:35 +00:00
class PersonAdmin(admin.ModelAdmin):
search_fields = ['title', 'first_name', 'last_name', 'organisation', 'position', 'country', 'contact_email']
# Register your models here.
2021-09-23 13:43:35 +00:00
admin.site.register(Person, PersonAdmin)
2021-07-28 04:20:54 +00:00
admin.site.register(Resource)
admin.site.register(Range)
admin.site.register(Method)
admin.site.register(Scale)
admin.site.register(Taxon)
admin.site.register(Field)