File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1469,17 +1469,17 @@ def to_internal_value(self, data):
1469
1469
if not self .allow_empty and len (data ) == 0 :
1470
1470
self .fail ('empty' )
1471
1471
1472
- return {
1473
- # Arguments for super() are needed because of scoping inside
1474
- # comprehensions.
1472
+ # Arguments for super() are needed because of scoping inside
1473
+ # comprehensions.
1474
+ return list ( dict . fromkeys ([
1475
1475
super (MultipleChoiceField , self ).to_internal_value (item )
1476
1476
for item in data
1477
- }
1477
+ ]))
1478
1478
1479
1479
def to_representation (self , value ):
1480
- return {
1480
+ return list ( dict . fromkeys ([
1481
1481
self .choice_strings_to_values .get (str (item ), item ) for item in value
1482
- }
1482
+ ]))
1483
1483
1484
1484
1485
1485
class FilePathField (ChoiceField ):
You can’t perform that action at this time.
0 commit comments