From 96ea4f875b289aef3372caf7851dabf64347ce8c Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 24 May 2018 09:57:10 +0200 Subject: [PATCH] Documented DeletionMixin.delete(). --- docs/ref/class-based-views/mixins-editing.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/ref/class-based-views/mixins-editing.txt b/docs/ref/class-based-views/mixins-editing.txt index 80757ab5bf..bd7611841e 100644 --- a/docs/ref/class-based-views/mixins-editing.txt +++ b/docs/ref/class-based-views/mixins-editing.txt @@ -232,6 +232,11 @@ The following mixins are used to construct Django's editing views: could use ``success_url="/parent/{parent_id}/"`` to redirect to a URL composed out of the ``parent_id`` field on a model. + .. method:: delete(request, *args, **kwargs) + + Retrieves the target object and calls its ``delete()`` method, then + redirects to the success URL. + .. method:: get_success_url() Returns the url to redirect to when the nominated object has been