(boundfield)
return not boundfield.field.required
Return True if given boundfield is optional, else False.
Return True if given boundfield is optional, else False.
Return True if given boundfield is optional else False .
def optional(boundfield):
    """Return True if given boundfield is optional, else False."""
    return not boundfield.field.required
def optional ( boundfield ) : return not boundfield . field . required