Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #20585: normalize signature of DeletionMixin.post.

  • Loading branch information...
commit 52f99b78bcc36c4dfdd2870ee139cd5461fb9e91 1 parent 9ff5f10
Baptiste Darthenay authored June 11, 2013

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/views/generic/edit.py
4  django/views/generic/edit.py
@@ -242,8 +242,8 @@ def delete(self, request, *args, **kwargs):
242 242
         return HttpResponseRedirect(success_url)
243 243
 
244 244
     # Add support for browsers which only accept GET and POST for now.
245  
-    def post(self, *args, **kwargs):
246  
-        return self.delete(*args, **kwargs)
  245
+    def post(self, request, *args, **kwargs):
  246
+        return self.delete(request, *args, **kwargs)
247 247
 
248 248
     def get_success_url(self):
249 249
         if self.success_url:

0 notes on commit 52f99b7

Please sign in to comment.
Something went wrong with that request. Please try again.