gmba_django/app/admin.py
2021-09-23 19:13:35 +05:30

16 lines
445 B
Python

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, PersonAdmin)
admin.site.register(Resource)
admin.site.register(Range)
admin.site.register(Method)
admin.site.register(Scale)
admin.site.register(Taxon)
admin.site.register(Field)