2021-07-01 13:36:07 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2021-08-04 13:32:35 +02:00
|
|
|
from intervention.models import Intervention, ResponsibilityData, LegalData, Revocation
|
2021-07-01 13:36:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
class InterventionAdmin(admin.ModelAdmin):
|
|
|
|
list_display = [
|
|
|
|
"id",
|
|
|
|
"title",
|
2021-08-02 11:52:20 +02:00
|
|
|
"created",
|
|
|
|
"deleted",
|
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-08-04 13:32:35 +02:00
|
|
|
class RevocationAdmin(admin.ModelAdmin):
|
|
|
|
list_display = [
|
|
|
|
"id",
|
|
|
|
"date",
|
|
|
|
"comment",
|
|
|
|
"created",
|
|
|
|
]
|
|
|
|
|
|
|
|
|
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)
|
2021-08-04 13:32:35 +02:00
|
|
|
admin.site.register(Revocation, RevocationAdmin)
|