Skip to content

Commit 9098856

Browse files
committed
fix DictKey initial value
1 parent 700af5d commit 9098856

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)