diff options
| author | Stefan Wehrmeyer <mail@stefanwehrmeyer.com> | 2017-03-28 12:27:49 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-04-01 18:43:39 -0400 |
| commit | 1aa8e8605cca95b31eaf6f5e47bc0742d6f2e0c7 (patch) | |
| tree | 912c4043c21c04d338e0c6730be66d65a99643e6 /django/forms/forms.py | |
| parent | 24023c6a8fc768ccb72108d2dd4fd8ece04075fd (diff) | |
Fixed #27989 -- Preserved empty QueryDicts for form's data/files args.
Diffstat (limited to 'django/forms/forms.py')
| -rw-r--r-- | django/forms/forms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/forms/forms.py b/django/forms/forms.py index caf4617c22..80613570ad 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -76,8 +76,8 @@ class BaseForm: initial=None, error_class=ErrorList, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None): self.is_bound = data is not None or files is not None - self.data = data or {} - self.files = files or {} + self.data = {} if data is None else data + self.files = {} if files is None else files self.auto_id = auto_id if prefix is not None: self.prefix = prefix |
