Permalink
Browse files

Fixed #20585: normalize signature of DeletionMixin.post.

  • Loading branch information...
1 parent 9ff5f10 commit 52f99b78bcc36c4dfdd2870ee139cd5461fb9e91 Baptiste Darthenay committed Jun 11, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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:

0 comments on commit 52f99b7

Please sign in to comment.