Skip to content

Commit 33c4278

Browse files
committed
Merge pull request #2616 from jerzyk/fix_dictfield
fix DictKey initial value
2 parents 700af5d + 9098856 commit 33c4278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ def to_representation(self, data):
11911191

11921192
class DictField(Field):
11931193
child = _UnvalidatedField()
1194-
initial = []
1194+
initial = {}
11951195
default_error_messages = {
11961196
'not_a_dict': _('Expected a dictionary of items but got type "{input_type}".')
11971197
}

0 commit comments

Comments
 (0)