mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
fix DictKey initial value
This commit is contained in:
parent
700af5dab2
commit
9098856d46
|
@ -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}".')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user