Skip to content
Snippets Groups Projects
Verified Commit 5f6a10e3 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add warning to delete view to prevent wrong usage

parent cdc4fcbb
No related branches found
No related tags found
1 merge request!331Add a common class-based delete view (including template)
Pipeline #3067 passed
......@@ -376,6 +376,14 @@ class AdvancedEditView(UpdateView, SuccessMessageMixin):
class AdvancedDeleteView(DeleteView):
"""Common confirm view for deleting.
.. warning ::
Using this view, objects are deleted permanently after confirming.
We recommend to include the mixin :class:`reversion.views.RevisionMixin`
from `django-reversion` to enable soft-delete.
"""
success_message: Optional[str] = None
def delete(self, request, *args, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment