diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/views/generic/edit.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/views/generic/edit.py b/django/views/generic/edit.py index 4ebf06a497..624883374d 100644 --- a/django/views/generic/edit.py +++ b/django/views/generic/edit.py @@ -118,7 +118,8 @@ class FormMixin(six.with_metaclass(FormMixinBase, ContextMixin)): """ Insert the form into the context dict. """ - kwargs.setdefault('form', self.get_form()) + if 'form' not in kwargs: + kwargs['form'] = self.get_form() return super(FormMixin, self).get_context_data(**kwargs) |
