Commit 8bc2f2a0 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

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

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
parent 9962f352
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -33,8 +33,8 @@ class FormMixin(object):
        """
        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 @@ class ModelFormMixin(FormMixin, SingleObjectMixin):
        """
        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,
            )