def django_boolean_icon(field_val, alt_text=None, title=None):
<EOL>BOOLEAN_MAPPING = {True: '<STR_LIT:yes>', False: '<STR_LIT>', None: '<STR_LIT>'}<EOL>alt_text = alt_text or BOOLEAN_MAPPING[field_val]<EOL>if title is not None:<EOL><INDENT>title = '<STR_LIT>' % title<EOL><DEDENT>else:<EOL><INDENT>title = '<STR_LIT>'<EOL><DEDENT>return mark_safe('<STR_LIT>' %<EOL>(settings.STATIC_URL, BOOLEAN_MAPPING[field_val], alt_text, title))<EOL>
Return HTML code for a nice representation of true/false.