oacpl/case_law/admin.py

13 lines
315 B
Python
Raw Normal View History

2017-09-05 02:24:11 -04:00
from django.contrib import admin
2017-09-06 00:28:39 -04:00
from case_law.models import Case, Heading
2017-09-05 02:24:11 -04:00
2017-09-06 00:28:39 -04:00
admin.site.register(Heading)
2017-09-05 02:24:11 -04:00
2017-09-06 00:28:39 -04:00
@admin.register(Case)
2017-09-05 02:24:11 -04:00
class DecisionAdmin(admin.ModelAdmin):
2017-09-06 00:28:39 -04:00
fields = ['synopsis', 'headings', 'published', 'pdf']
filter_horizontal = ['headings']
2018-01-22 22:27:06 -05:00
list_display = ['id', 'synopsis', 'published']