diff options
| author | Claude Paroz <claude@2xlibre.net> | 2018-05-24 09:57:10 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-05-24 21:25:24 -0400 |
| commit | 96ea4f875b289aef3372caf7851dabf64347ce8c (patch) | |
| tree | 100ac7871cc6aca673d5b69f871041b4d0f92044 /docs/ref | |
| parent | f40e71a957aa00b4572c19b269179cded6c8c500 (diff) | |
Documented DeletionMixin.delete().
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/class-based-views/mixins-editing.txt | 5 |
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 |
