From 52f99b78bcc36c4dfdd2870ee139cd5461fb9e91 Mon Sep 17 00:00:00 2001 From: Baptiste Darthenay Date: Tue, 11 Jun 2013 12:40:06 +0200 Subject: [PATCH] Fixed #20585: normalize signature of DeletionMixin.post. --- django/views/generic/edit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/views/generic/edit.py b/django/views/generic/edit.py index cf87aeed27..b31d7a218f 100644 --- a/django/views/generic/edit.py +++ b/django/views/generic/edit.py @@ -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: