konova/intervention/admin.py

39 lines
822 B
Python
Raw Normal View History

2021-07-01 13:36:07 +02:00
from django.contrib import admin
from intervention.models import Intervention, ResponsibilityData, LegalData
2021-07-01 13:36:07 +02:00
class InterventionAdmin(admin.ModelAdmin):
list_display = [
"id",
"title",
"created",
"deleted",
2021-07-01 13:36:07 +02:00
]
class ResponsibilityAdmin(admin.ModelAdmin):
list_display = [
"id",
"registration_office",
"registration_file_number",
"conservation_office",
"conservation_file_number",
"handler",
]
class LegalAdmin(admin.ModelAdmin):
list_display = [
"id",
"process_type",
"law",
"registration_date",
"binding_date",
]
2021-07-01 13:36:07 +02:00
admin.site.register(Intervention, InterventionAdmin)
admin.site.register(ResponsibilityData, ResponsibilityAdmin)
admin.site.register(LegalData, LegalAdmin)