Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1258 from batisteo/ticket-20585

Fixed #20585: normalize signature of DeletionMixin.post.
  • Loading branch information...
commit 51739c624185b4b45877f521ed5015f2fe01b6e8 2 parents 9ff5f10 + 52f99b7
@mjtamlyn mjtamlyn 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.