#NEWLINE# def _boolean_icon( field_val ) : #NEWLINE# #INDENT# BOOLEAN_MAPPING = { #NEWLINE# #INDENT# True : 'yes' , #NEWLINE# False : 'no' , #NEWLINE# None : 'unknown' , #NEWLINE# #UNINDENT# } #NEWLINE# return mark_safe ( ( '<img src="%simg/admin/icon-%s.gif" alt="%s" />' % ( settings . ADMIN_MEDIA_PREFIX , BOOLEAN_MAPPING [ field_val ] , BOOLEAN_MAPPING ) ) )