summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndra Denis Ionescu <andra_denis.ionescu@stud.acs.upb.ro>2019-03-05 16:41:08 +0100
committerTim Graham <timograham@gmail.com>2019-03-05 10:41:08 -0500
commit4c086d7da4c5cf23935a5340dbb9a8d6835cf7cc (patch)
tree59899405ba3606e13ffe0f1d3cf62c8c5325ce71 /tests
parent163236ea0e5df1a301371e79ec35fc67b7a1b7a6 (diff)
Fixed #29459 -- Initialized form data/files with empty MultiValueDicts.
Diffstat (limited to 'tests')
-rw-r--r--tests/forms_tests/tests/test_forms.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py
index d4e421d6ac..edce5e801f 100644
--- a/tests/forms_tests/tests/test_forms.py
+++ b/tests/forms_tests/tests/test_forms.py
@@ -3671,6 +3671,11 @@ Good luck picking a username that doesn&#39;t already exist.</p>
self.assertTrue(f.is_valid())
self.assertEqual(f.cleaned_data, {'data': 'xyzzy'})
+ def test_empty_data_files_multi_value_dict(self):
+ p = Person()
+ self.assertIsInstance(p.data, MultiValueDict)
+ self.assertIsInstance(p.files, MultiValueDict)
+
class CustomRenderer(DjangoTemplates):
pass