def render_iconchoicefield(field, attrs):
choices = "<STR_LIT>"<EOL>for choice in field.field._choices:<EOL><INDENT>value = choice[<NUM_LIT:1>].split("<STR_LIT:|>")  <EOL>choices += format_html(<EOL>wrappers.ICON_CHOICE_TEMPLATE,<EOL>choice[<NUM_LIT:0>],  <EOL>mark_safe(wrappers.ICON_TEMPLATE.format(value[-<NUM_LIT:1>])),  <EOL>value[<NUM_LIT:0>]  <EOL>)<EOL><DEDENT>return render_choicefield(field, attrs, choices)<EOL>
Render a ChoiceField with icon support; where the value is split by a pipe
(|): first element being the value, last element is the icon.