mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
Merge pull request #2616 from jerzyk/fix_dictfield
fix DictKey initial value
This commit is contained in:
commit
33c4278ec8
|
@ -1191,7 +1191,7 @@ class ListField(Field):
|
|||
|
||||
class DictField(Field):
|
||||
child = _UnvalidatedField()
|
||||
initial = []
|
||||
initial = {}
|
||||
default_error_messages = {
|
||||
'not_a_dict': _('Expected a dictionary of items but got type "{input_type}".')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user