Skip to content

Commit

Permalink
Documented DeletionMixin.delete() method
Browse files Browse the repository at this point in the history
  • Loading branch information
claudep committed May 24, 2018
1 parent 392963e commit 8c64d4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/ref/class-based-views/mixins-editing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,8 @@ The following mixins are used to construct Django's editing views:
successfully deleted. Returns
:attr:`~django.views.generic.edit.DeletionMixin.success_url` by
default.

.. method:: delete(request, *args, **kwargs)

Gets the target object, proceeds to its deletion and redirects to the
success URL.

0 comments on commit 8c64d4d

Please sign in to comment.