* refactors AbstractDeadlineViews (new, edit, remove) to inherit from BaseModalFormView * refactors KOM, OEK, EMA views for deadline views
26 lines
828 B
Python
26 lines
828 B
Python
"""
|
|
Author: Michel Peltriaux
|
|
Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany
|
|
Contact: ksp-servicestelle@sgdnord.rlp.de
|
|
Created on: 19.08.22
|
|
|
|
"""
|
|
from compensation.models import Compensation
|
|
from konova.views.deadline import AbstractRemoveDeadlineView, AbstractEditDeadlineView, AbstractNewDeadlineView
|
|
|
|
_COMPENSATION_DETAIL_URL_NAME = "compensation:detail"
|
|
|
|
class NewCompensationDeadlineView(AbstractNewDeadlineView):
|
|
_MODEL_CLS = Compensation
|
|
_REDIRECT_URL = _COMPENSATION_DETAIL_URL_NAME
|
|
|
|
|
|
class EditCompensationDeadlineView(AbstractEditDeadlineView):
|
|
_MODEL_CLS = Compensation
|
|
_REDIRECT_URL = _COMPENSATION_DETAIL_URL_NAME
|
|
|
|
|
|
class RemoveCompensationDeadlineView(AbstractRemoveDeadlineView):
|
|
_MODEL_CLS = Compensation
|
|
_REDIRECT_URL = _COMPENSATION_DETAIL_URL_NAME
|