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