Fixed #20585: normalize signature of DeletionMixin.post.

This commit is contained in:
Baptiste Darthenay 2013-06-11 12:40:06 +02:00
parent 9ff5f100dd
commit 52f99b78bc
1 changed files with 2 additions and 2 deletions

View File

@ -242,8 +242,8 @@ class DeletionMixin(object):
return HttpResponseRedirect(success_url) return HttpResponseRedirect(success_url)
# Add support for browsers which only accept GET and POST for now. # Add support for browsers which only accept GET and POST for now.
def post(self, *args, **kwargs): def post(self, request, *args, **kwargs):
return self.delete(*args, **kwargs) return self.delete(request, *args, **kwargs)
def get_success_url(self): def get_success_url(self):
if self.success_url: if self.success_url: