# Remove View refactoring

* refactors remove view for kom, eiv, oek and ema
* introduces BaseRemoveModalFormView
* moves html blocking logic from BaseModalForm into BaseModalFormView
This commit is contained in:
2025-10-21 20:28:43 +02:00
parent 765356d064
commit 21af4f2c57
17 changed files with 117 additions and 157 deletions

View File

@@ -106,7 +106,7 @@ class NewCompensationStateModalForm(BaseModalForm):
"""
redirect_url = redirect_url if redirect_url is not None else request.META.get("HTTP_REFERER", "home")
template = self.template
template = self._TEMPLATE
if request.method == "POST":
if self.is_valid():
# Modal forms send one POST for checking on data validity. This can be used to return possible errors