Compensation model refactoring
* splits Intervention model into main components * Compensation (main object) * ResponsibilityData (holds organizations and handler) - same as used for intervention * This way data can be extended more easily in the future * refactors deadlines
This commit is contained in:
@@ -7,7 +7,7 @@ Created on: 22.07.21
|
||||
"""
|
||||
from django.contrib import admin
|
||||
|
||||
from konova.models import Geometry, Document
|
||||
from konova.models import Geometry, Document, Deadline
|
||||
|
||||
|
||||
class GeometryAdmin(admin.ModelAdmin):
|
||||
@@ -28,5 +28,15 @@ class DocumentAdmin(admin.ModelAdmin):
|
||||
]
|
||||
|
||||
|
||||
class DeadlineAdmin(admin.ModelAdmin):
|
||||
list_display = [
|
||||
"id",
|
||||
"type",
|
||||
"date",
|
||||
"comment",
|
||||
]
|
||||
|
||||
|
||||
admin.site.register(Geometry, GeometryAdmin)
|
||||
admin.site.register(Document, DocumentAdmin)
|
||||
admin.site.register(Deadline, DeadlineAdmin)
|
||||
|
||||
Reference in New Issue
Block a user