def render_choicefield(field, attrs, choices=None):
<EOL>if not choices:<EOL><INDENT>choices = format_html_join("<STR_LIT>", wrappers.CHOICE_TEMPLATE, get_choices(field))<EOL><DEDENT>field.field.widget.attrs["<STR_LIT:value>"] = field.value() or attrs.get("<STR_LIT:value>", "<STR_LIT>")<EOL>return wrappers.DROPDOWN_WRAPPER % {<EOL>"<STR_LIT:name>": field.html_name,<EOL>"<STR_LIT>": pad(flatatt(field.field.widget.attrs)),<EOL>"<STR_LIT>": attrs.get("<STR_LIT>") or get_placeholder_text(),<EOL>"<STR_LIT>": pad(attrs.get("<STR_LIT>", "<STR_LIT>")),<EOL>"<STR_LIT>": format_html(wrappers.ICON_TEMPLATE, attrs.get("<STR_LIT>") or "<STR_LIT>"),<EOL>"<STR_LIT>": choices<EOL>}<EOL>
Render ChoiceField as 'div' dropdown rather than select for more
customization.