* refactors resubmission view for eiv, kom, oek, ema * removes unused attributes on BaseModalFormView
21 lines
590 B
Python
21 lines
590 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 ema.forms import EmaResubmissionModalForm
|
|
from ema.models import Ema
|
|
from konova.views.resubmission import AbstractResubmissionView
|
|
|
|
|
|
class EmaResubmissionView(AbstractResubmissionView):
|
|
_MODEL_CLS = Ema
|
|
_FORM_CLS = EmaResubmissionModalForm
|
|
_REDIRECT_URL = "ema:detail"
|
|
action_url = "ema:resubmission-create"
|
|
|
|
def _user_has_permission(self, user):
|
|
return user.is_ets_user()
|