Commit 9098856d by Janusz Harkot

fix DictKey initial value

parent 700af5da
...@@ -1191,7 +1191,7 @@ class ListField(Field): ...@@ -1191,7 +1191,7 @@ class ListField(Field):
class DictField(Field): class DictField(Field):
child = _UnvalidatedField() child = _UnvalidatedField()
initial = [] initial = {}
default_error_messages = { default_error_messages = {
'not_a_dict': _('Expected a dictionary of items but got type "{input_type}".') 'not_a_dict': _('Expected a dictionary of items but got type "{input_type}".')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment