Documented DeletionMixin.delete().

This commit is contained in:
Claude Paroz 2018-05-24 09:57:10 +02:00 committed by Tim Graham
parent f40e71a957
commit 96ea4f875b
1 changed files with 5 additions and 0 deletions

View File

@ -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