Permalink
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.