Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #20585: normalize signature of DeletionMixin.post.

  • Loading branch information...
commit 52f99b78bcc36c4dfdd2870ee139cd5461fb9e91 1 parent 9ff5f10
@batisteo batisteo authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/views/generic/edit.py
View
4 django/views/generic/edit.py
@@ -242,8 +242,8 @@ def delete(self, request, *args, **kwargs):
return HttpResponseRedirect(success_url)
# Add support for browsers which only accept GET and POST for now.
- def post(self, *args, **kwargs):
- return self.delete(*args, **kwargs)
+ def post(self, request, *args, **kwargs):
+ return self.delete(request, *args, **kwargs)
def get_success_url(self):
if self.success_url:
Please sign in to comment.
Something went wrong with that request. Please try again.