Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@freakboy3742 freakboy3742 authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 django/views/generic/edit.py
View
8 django/views/generic/edit.py
@@ -33,8 +33,8 @@ def get_form(self, form_class):
"""
if self.request.method in ('POST', 'PUT'):
return form_class(
- self.request.POST,
- self.request.FILES,
+ data=self.request.POST,
+ files=self.request.FILES,
initial=self.get_initial()
)
else:
@@ -84,8 +84,8 @@ def get_form(self, form_class):
"""
if self.request.method in ('POST', 'PUT'):
return form_class(
- self.request.POST,
- self.request.FILES,
+ data=self.request.POST,
+ files=self.request.FILES,
initial=self.get_initial(),
instance=self.object,
)

0 comments on commit 8bc2f2a

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