summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2018-05-24 09:57:10 +0200
committerTim Graham <timograham@gmail.com>2018-05-24 21:46:35 -0400
commit3cca2ab2e7d32eea46ad615b18f7ac1812dbd85b (patch)
tree4e95be7511c423c32252be8a2713f187b3eb15b7 /docs
parenta53d6487b53d949108421a1aeb164f1c7132aa69 (diff)
[2.1.x] Documented DeletionMixin.delete().
Backport of 96ea4f875b289aef3372caf7851dabf64347ce8c from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/class-based-views/mixins-editing.txt5
1 files changed, 5 insertions, 0 deletions
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