# Deduction views

* refactors deduction views on interventions and eco accounts from function to class based
* introduces basic checks on shared access and permission on BaseView on dispatching --> checks shall be overwritten on inheriting classes
This commit is contained in:
2025-10-16 15:36:57 +02:00
parent f4e97db9ac
commit 8a984d0169
10 changed files with 148 additions and 114 deletions

View File

@@ -102,7 +102,7 @@ def new_view(request: HttpRequest):
class InterventionIdentifierGeneratorView(LoginRequiredMixin, BaseIdentifierGeneratorView):
_MODEL_CLS = Intervention
_REDIRECT_URL_NAME = "intervention:index"
_REDIRECT_URL = "intervention:index"
@login_required