oacpl/expert_witnesses/admin.py

16 lines
440 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):
2018-01-14 19:32:00 -05:00
list_display = ['name', 'institute', 'CV']
list_filter = ['institute', 'expertise']
search_fields = ['name', 'institute', 'expertise']
2018-01-14 18:34:28 -05:00
fields = ['name', 'institute', 'CV', 'expertise', 'cases']
2018-01-14 19:32:00 -05:00
filter_horizontal = ['expertise', 'cases']