yig/franklincce/explorer/admin.py

13 lines
402 B
Python
Raw Permalink Normal View History

from django.contrib import admin
from .models import LegislativeText, LegislationBook
class LegislativeTextAdmin(admin.ModelAdmin):
list_display = ('__str__', 'legislation_title', 'school')
class LegislationBookAdmin(admin.ModelAdmin):
exclude = ("has_performed_export",)
admin.site.register(LegislativeText, LegislativeTextAdmin)
admin.site.register(LegislationBook, LegislationBookAdmin)