yig/franklincce/explorer/admin.py

20 lines
535 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],
2024-06-29 23:19:39 -05:00
[models.LegislationClassification],
[models.School],
2024-06-29 23:41:33 -05:00
[models.Country],
2024-07-24 00:13:30 -05:00
[models.Sponsor],
]
for i in to_register:
2024-06-29 15:48:53 -05:00
admin.site.register(*i)