'Only relevant if DBS3_SET_REQUIRED_SET_DISABLED'

def add_required_attrs(self, widget=None):

    if (widget is None):
        widget = self.widget
    if (self.set_required and is_widget_required_attribute(widget)):
        widget.attrs[u'required'] = u'required'
