f113bad733
* refactors base attributes created and deleted into UserActionLogEntry foreign keys * refactors all related queries and process logic * fixes binding_on into binding_date in intervention/detail/view.html * adds basic __str__ for some models *
39 lines
822 B
Python
39 lines
822 B
Python
from django.contrib import admin
|
|
|
|
from intervention.models import Intervention, ResponsibilityData, LegalData
|
|
|
|
|
|
class InterventionAdmin(admin.ModelAdmin):
|
|
list_display = [
|
|
"id",
|
|
"title",
|
|
"created",
|
|
"deleted",
|
|
]
|
|
|
|
|
|
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",
|
|
]
|
|
|
|
|
|
admin.site.register(Intervention, InterventionAdmin)
|
|
admin.site.register(ResponsibilityData, ResponsibilityAdmin)
|
|
admin.site.register(LegalData, LegalAdmin)
|