2021-07-01 13:36:07 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2021-07-30 09:30:33 +02:00
|
|
|
from intervention.models import Intervention, ResponsibilityData, LegalData
|
2021-07-01 13:36:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
class InterventionAdmin(admin.ModelAdmin):
|
|
|
|
list_display = [
|
|
|
|
"id",
|
|
|
|
"title",
|
2021-07-01 14:38:57 +02:00
|
|
|
"created_on",
|
|
|
|
"deleted_on",
|
2021-07-01 13:36:07 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
2021-07-30 09:30:33 +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)
|
2021-07-30 09:30:33 +02:00
|
|
|
admin.site.register(ResponsibilityData, ResponsibilityAdmin)
|
|
|
|
admin.site.register(LegalData, LegalAdmin)
|