def _render(self):
    if (self.field.name in self.exclude.replace(' ', '').split(',')):
        return ''
    if self.field.is_hidden:
        return text_value(self.field)
    self.add_widget_attrs()
    html = self.field.as_widget(attrs=self.widget.attrs)
    self.restore_widget_attrs()
    html = self.post_widget_render(html)
    html = self.append_to_checkbox_field(html)
    html = self.wrap_widget(html)
    html = self.make_input_group(html)
    html = self.append_to_field(html)
    html = self.wrap_field(html)
    html = self.add_label(html)
    html = self.wrap_label_and_field(html)
    return html
def _render(self):
    if (self.field.name in self.exclude.replace(' ', ).split(',')):
        return 
    if self.field.is_hidden:
        return text_value(self.field)
    self.add_widget_attrs()
    html = self.field.as_widget(attrs=self.widget.attrs)
    self.restore_widget_attrs()
    html = self.post_widget_render(html)
    html = self.append_to_checkbox_field(html)
    html = self.wrap_widget(html)
    html = self.make_input_group(html)
    html = self.append_to_field(html)
    html = self.wrap_field(html)
    html = self.add_label(html)
    html = self.wrap_label_and_field(html)
    return html