diff --git a/aidants_connect_habilitation/views.py b/aidants_connect_habilitation/views.py index 9424ea7ca..4bc7737ea 100644 --- a/aidants_connect_habilitation/views.py +++ b/aidants_connect_habilitation/views.py @@ -79,10 +79,6 @@ def dispatch(self, request, *args, **kwargs): class LateStageRequestView(VerifiedEmailIssuerView, View): - @property - def step(self) -> HabilitationFormStep: - raise NotImplementedError() - def setup(self, request, *args, **kwargs): super().setup(request, *args, **kwargs) self.organisation = get_object_or_404( @@ -90,7 +86,7 @@ def setup(self, request, *args, **kwargs): ) -class OnlyNewRequestsView(LateStageRequestView): +class OnlyNewRequestsView(HabilitationStepMixin, LateStageRequestView): @property def step(self) -> HabilitationFormStep: raise NotImplementedError() @@ -287,7 +283,7 @@ def get_form_kwargs(self): return {**super().get_form_kwargs(), "instance": self.organisation} -class PersonnelRequestFormView(OnlyNewRequestsView, HabilitationStepMixin, FormView): +class PersonnelRequestFormView(OnlyNewRequestsView, FormView): template_name = "personnel_form.html" form_class = PersonnelForm @@ -338,7 +334,7 @@ def get_success_url(self): ) -class ValidationRequestFormView(OnlyNewRequestsView, HabilitationStepMixin, FormView): +class ValidationRequestFormView(OnlyNewRequestsView, FormView): template_name = "validation_form.html" form_class = ValidationForm