Compensation enhancements

* compensations won't be listed in index table if related intervention has been deleted
* adds functionality for intervention remove button
* adds outcommented code
* adds configurable redirect_url for RemoveModalForm's process_request method
* adds translation
This commit is contained in:
mipel committed 2021-08-02 15:39:33 +02:00
1 parent 6d48b35107
commit 78d6feabb6
8 files changed
+17 -34

No files matched your search

+2 -2
View File
@@ -26,9 +26,9 @@ def index_view(request: HttpRequest):
A rendered view
"""
template = "generic_index.html"
user = request.user
compensations = Compensation.objects.filter(
deleted=None,
deleted=None, # only show those which are not deleted individually
intervention__deleted=None, # and don't show the ones whose intervention has been deleted
)
table = CompensationTable(
request=request,