# 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 afbdf221c3
commit 242730435e
10 changed files with 148 additions and 114 deletions

View File

@@ -98,7 +98,7 @@ def new_view(request: HttpRequest):
class EmaIdentifierGeneratorView(LoginRequiredMixin, BaseIdentifierGeneratorView):
_MODEL_CLS = Ema
_REDIRECT_URL_NAME = "ema:index"
_REDIRECT_URL = "ema:index"
def _user_has_permission(self, user):
return user.is_ets_user()