* refactors AbstractCompensationActionViews (new, edit, remove) to inherit from BaseModalFormView * refactors KOM, OEK, EMA views for compensation actions * moves message template strings into message_templates.py
28 lines
887 B
Python
28 lines
887 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.action import AbstractNewCompensationActionView, AbstractEditCompensationActionView, \
|
|
AbstractRemoveCompensationActionView
|
|
|
|
_COMPENSATION_DETAIL_URL_NAME = "compensation:detail"
|
|
|
|
class NewCompensationActionView(AbstractNewCompensationActionView):
|
|
_MODEL_CLS = Compensation
|
|
_REDIRECT_URL = _COMPENSATION_DETAIL_URL_NAME
|
|
|
|
|
|
class EditCompensationActionView(AbstractEditCompensationActionView):
|
|
_MODEL_CLS = Compensation
|
|
_REDIRECT_URL = _COMPENSATION_DETAIL_URL_NAME
|
|
|
|
|
|
class RemoveCompensationActionView(AbstractRemoveCompensationActionView):
|
|
_MODEL_CLS = Compensation
|
|
_REDIRECT_URL = _COMPENSATION_DETAIL_URL_NAME
|