oacpl/expert_witnesses/admin.py

13 lines
287 B
Python
Raw Normal View History

2017-09-05 02:24:39 -04:00
from django.contrib import admin
from .models import Expert, AreaOfExpertise
admin.site.register(AreaOfExpertise)
@admin.register(Expert)
class ExpertiseAdmin(admin.ModelAdmin):
fields = ['name', 'institute', 'expertise', 'cases']
filter_horizontal = ('expertise', 'cases')