def __call__(self, field, **kwargs):
html = "<STR_LIT>"<EOL>for subfield in field:<EOL><INDENT>label = subfield.label.text<EOL>if (field.default == subfield.data):<EOL><INDENT>subfield.checked = True<EOL><DEDENT>else:<EOL><INDENT>subfield.checked = False<EOL><DEDENT>description = self.descriptions.get(subfield.data, "<STR_LIT>")<EOL>html += ('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>') % (subfield(), label, description)<EOL><DEDENT>return HTMLString(html)<EOL>
Render radio group.