      elif value is None:
          return EMPTY_CHANGELIST_VALUE
      elif isinstance(field, models.DateField) or isinstance(field, models.TimeField):
          return formats.localize(value)
      elif isinstance(field, models.BooleanField) or isinstance(field, models.NullBooleanField):
          return _boolean_icon(value)
      elif isinstance(field, models.DecimalField):
          return formats.number_format(value, field.decimal_places)
      elif isinstance(field, models.FloatField):
          return formats.number_format(value)
      else:
 
</s> remove         self.assertEqual(display_value, EMPTY_CHANGELIST_VALUE)
 </s> add         expected = u'<img src="%simg/admin/icon-unknown.gif" alt="None" />' % settings.ADMIN_MEDIA_PREFIX
        self.assertEqual(display_value, expected)
      elif value is None:
          return EMPTY_CHANGELIST_VALUE
      elif isinstance(field, models.DateField) or isinstance(field, models.TimeField):
          return formats.localize(value)


      elif isinstance(field, models.DecimalField):
          return formats.number_format(value, field.decimal_places)
      elif isinstance(field, models.FloatField):
          return formats.number_format(value)
      else:
keep keep keep keep replace replace keep keep keep keep keep
 Ensure that NullBooleanField displays the appropriate icon for null values in admin changelists. Refs #13071.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12746 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/contrib/admin/util.py