oacpl/case_law/admin.py

13 lines
307 B
Python
Raw Normal View History

2017-09-05 02:24:11 -04:00
from django.contrib import admin
from case_law.models import Decision, Subtitle
admin.site.register(Subtitle)
@admin.register(Decision)
class DecisionAdmin(admin.ModelAdmin):
fields = ['synopsis', 'headers', 'date', 'pdf']
filter_horizontal = ['headers']
list_display = ['synopsis', 'date']