Merge pull request #5339 from kycool/master

Update fields.py
This commit is contained in:
Carlton Gibson 2017-08-18 09:11:59 +02:00 committed by GitHub
commit 4e08abb605

View File

@ -142,7 +142,7 @@ def to_choices_dict(choices):
to_choices_dict([1]) -> {1: 1}
to_choices_dict([(1, '1st'), (2, '2nd')]) -> {1: '1st', 2: '2nd'}
to_choices_dict([('Group', ((1, '1st'), 2))]) -> {'Group': {1: '1st', 2: '2nd'}}
to_choices_dict([('Group', ((1, '1st'), 2))]) -> {'Group': {1: '1st', 2: '2'}}
"""
# Allow single, paired or grouped choices style:
# choices = [1, 2, 3]