mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +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):
|
||||
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