Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #14568 -- Use keyword rather than positional arguments for form…

… construction. Thanks to mattmcc for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8bc2f2a0b531c9e9bf7734b05ed3d3a7e86a526e 1 parent 9962f35
Russell Keith-Magee authored October 28, 2010

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

  1. 8  django/views/generic/edit.py
8  django/views/generic/edit.py
@@ -33,8 +33,8 @@ def get_form(self, form_class):
33 33
         """
34 34
         if self.request.method in ('POST', 'PUT'):
35 35
             return form_class(
36  
-                self.request.POST,
37  
-                self.request.FILES,
  36
+                data=self.request.POST,
  37
+                files=self.request.FILES,
38 38
                 initial=self.get_initial()
39 39
             )
40 40
         else:
@@ -84,8 +84,8 @@ def get_form(self, form_class):
84 84
         """
85 85
         if self.request.method in ('POST', 'PUT'):
86 86
             return form_class(
87  
-                self.request.POST,
88  
-                self.request.FILES,
  87
+                data=self.request.POST,
  88
+                files=self.request.FILES,
89 89
                 initial=self.get_initial(),
90 90
                 instance=self.object,
91 91
             )

0 notes on commit 8bc2f2a

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