(boundfield)
return [six.text_type(choice_dict.get(v, v)) for v in val]
Return the values for given multiple-select as human-readable text.
Return the values for given multiple-select as human-readable text.
Return the values for given multiple - select as human - readable text .
def selected_values(boundfield):
    """Return the values for given multiple-select as human-readable text."""
    val = boundfield.value()
    # If choices is set, use the display label
    choice_dict = dict(getattr(boundfield.field, "choices", []))
    return [six.text_type(choice_dict.get(v, v)) for v in val]
def selected_values ( boundfield ) : val = boundfield . value ( ) # If choices is set, use the display label choice_dict = dict ( getattr ( boundfield . field , "choices" , [ ] ) ) return [ six . text_type ( choice_dict . get ( v , v ) ) for v in val ]