Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #1583: django.contrib.admin.templatetags.admin_list no longer i…

…mports from the non-existant Thanks, ubernostrum

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 223a708 commit 583dcdcede2453fd7ff4e4f26222f9e75b46bb8d @jacobian jacobian committed
Showing with 0 additions and 4 deletions.
  1. +0 −4 django/contrib/admin/templatetags/
4 django/contrib/admin/templatetags/
@@ -150,10 +150,6 @@ def items_for_result(cl, result):
elif isinstance(f, models.BooleanField) or isinstance(f, models.NullBooleanField):
BOOLEAN_MAPPING = {True: 'yes', False: 'no', None: 'unknown'}
result_repr = '<img src="%simg/admin/icon-%s.gif" alt="%s" />' % (settings.ADMIN_MEDIA_PREFIX, BOOLEAN_MAPPING[field_val], field_val)
- # ImageFields are special: Use a thumbnail.
- elif isinstance(f, models.ImageField):
- from import get_thumbnail_url
- result_repr = '<img src="%s" alt="%s" title="%s" />' % (get_thumbnail_url(getattr(result, 'get_%s_url' %, '120'), field_val, field_val)
# FloatFields are special: Zero-pad the decimals.
elif isinstance(f, models.FloatField):
if field_val is not None:

0 comments on commit 583dcdc

Please sign in to comment.
Something went wrong with that request. Please try again.