0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Merge pull request #1258 from batisteo/ticket-20585

Fixed #20585: normalize signature of DeletionMixin.post.
This commit is contained in:
Marc Tamlyn 2013-06-11 03:44:37 -07:00
commit 51739c6241

View File

@ -242,8 +242,8 @@ class DeletionMixin(object):
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: