* refactors compensation state views for kom, ema, oek * updates tests * refactors before-after state toggling into initialization of NewCompensationStateModalForm
26 lines
798 B
Python
26 lines
798 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.state import AbstractNewCompensationStateView, AbstractEditCompensationStateView, \
|
|
AbstractRemoveCompensationStateView
|
|
|
|
|
|
class NewCompensationStateView(AbstractNewCompensationStateView):
|
|
_MODEL_CLS = Compensation
|
|
_REDIRECT_URL = "compensation:detail"
|
|
|
|
|
|
class EditCompensationStateView(AbstractEditCompensationStateView):
|
|
_MODEL_CLS = Compensation
|
|
_REDIRECT_URL = "compensation:detail"
|
|
|
|
|
|
class RemoveCompensationStateView(AbstractRemoveCompensationStateView):
|
|
_MODEL_CLS = Compensation
|
|
_REDIRECT_URL = "compensation:detail"
|