(boundfield)
return 'radio' in boundfield.field.widget.__class__.__name__.lower()
Return True if this field's widget's class name contains 'radio'.

    This hacky approach is necessary in order to support django-floppyforms,
    whose RadioSelect does not inherit from Django's built-in RadioSelect.
Return True if this field's widget's class name contains 'radio'.
Return True if this field s widget s class name contains radio .
def is_radio(boundfield):
    """
    Return True if this field's widget's class name contains 'radio'.

    This hacky approach is necessary in order to support django-floppyforms,
    whose RadioSelect does not inherit from Django's built-in RadioSelect.

    """
    return 'radio' in boundfield.field.widget.__class__.__name__.lower()
def is_radio ( boundfield ) : return 'radio' in boundfield . field . widget . __class__ . __name__ . lower ( )