(self, context)
return ''
Render.
Render.
Render .
def render(self, context):
        """Render."""
        field = self.field.resolve(context, True)
        properties = []

        if isinstance(field.field.widget, forms.CheckboxInput):
            properties.append('is_checkbox')

        if isinstance(field.field.widget, forms.CheckboxSelectMultiple):
            properties.append('is_checkbox_multiple')

        if isinstance(field.field.widget, forms.RadioSelect):
            properties.append('is_radio')

        res = FormFieldType(properties)

        context[self.as_var] = res
        return ''
def render ( self , context ) : field = self . field . resolve ( context , True ) properties = [ ] if isinstance ( field . field . widget , forms . CheckboxInput ) : properties . append ( 'is_checkbox' ) if isinstance ( field . field . widget , forms . CheckboxSelectMultiple ) : properties . append ( 'is_checkbox_multiple' ) if isinstance ( field . field . widget , forms . RadioSelect ) : properties . append ( 'is_radio' ) res = FormFieldType ( properties ) context [ self . as_var ] = res return ''