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']
|
|
|
|
list_display = ['synopsis', 'published']
|