def update_widget_attrs(self, bound_field, attrs):
if bound_field.field.has_subwidgets() is False:<EOL><INDENT>widget_classes = getattr(self, '<STR_LIT>', None)<EOL>if widget_classes:<EOL><INDENT>if '<STR_LIT:class>' in attrs:<EOL><INDENT>attrs['<STR_LIT:class>'] += '<STR_LIT:U+0020>' + widget_classes<EOL><DEDENT>else:<EOL><INDENT>attrs.update({'<STR_LIT:class>': widget_classes})<EOL><DEDENT><DEDENT><DEDENT>return attrs<EOL>
Updated the widget attributes which shall be added to the widget when rendering this field.