1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

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

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