yig/franklincce/explorer/admin.py

17 lines
469 B
Python
Raw Normal View History

from django.contrib import admin
from explorer import models
class LegislativeTextAdmin(admin.ModelAdmin):
list_display = ('__str__', 'legislation_title', 'school')
class LegislationBookAdmin(admin.ModelAdmin):
exclude = ("has_performed_export",)
to_register = [
[models.LegislativeText, LegislativeTextAdmin],
[models.LegislationBook, LegislationBookAdmin],
[models.LegislationClassification]
]
for i in to_register:
2024-06-29 15:48:53 -05:00
admin.site.register(*i)