Skip to content

Commit c868378

Browse files
author
kycool
authored
Update fields.py
modify to_choices_dict document
1 parent 43c7af0 commit c868378

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
@@ -142,7 +142,7 @@ def to_choices_dict(choices):
142142
143143
to_choices_dict([1]) -> {1: 1}
144144
to_choices_dict([(1, '1st'), (2, '2nd')]) -> {1: '1st', 2: '2nd'}
145-
to_choices_dict([('Group', ((1, '1st'), 2))]) -> {'Group': {1: '1st', 2: '2nd'}}
145+
to_choices_dict([('Group', ((1, '1st'), 2))]) -> {'Group': {1: '1st', 2: '2'}}
146146
"""
147147
# Allow single, paired or grouped choices style:
148148
# choices = [1, 2, 3]

0 commit comments

Comments
 (0)