﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
674	ImageField display use undocumented thumbnails for change_list display	nesh <nesh [at] studioquattro [dot] co [dot] yu>	Adrian Holovaty	"I'm hunting this almost a hour :)

When displayed in admin interface ImageField use some sort of thumbnail (like xxx_t120.jpg). AFAIK this is not documented anywhere.

Also because thumbnail is not auto-generated I'm only got broken links in admin.

First solution, probably, will be some sort of auto-generated thumbnails or something like this (no thumbs, and I'm using i18n branch):

{{{
Index: /store/django/django/contrib/admin/views/main.py
===================================================================
--- /store/django/django/contrib/admin/views/main.py    (revision 987)
+++ /store/django/django/contrib/admin/views/main.py    (working copy)
@@ -414,8 +414,7 @@
                         result_repr = '<img src=""%simg/admin/icon-%s.gif"" alt=""%s"" />' % (ADMIN_MEDIA_PREFIX, BOOLEAN_MAPPING[field_val], field_val)
                     # ImageFields are special: Use a thumbnail.
                     elif isinstance(f, meta.ImageField):
-                        from django.parts.media.photos import get_thumbnail_url
-                        result_repr = '<img src=""%s"" alt=""%s"" title=""%s"" />' % (get_thumbnail_url(getattr(result, 'get_%s_url' % f.name)(), '120'), field_val, field_val)
+                        result_repr = '<img src=""%s"" alt=""%s"" title=""%s"" width=""120"" />' % (getattr(result, 'get_%s_url' % f.name)(), field_val, field_val)
                     # FloatFields are special: Zero-pad the decimals.
                     elif isinstance(f, meta.FloatField):
                         if field_val is not None:
}}}"	defect	closed	contrib.admin		normal	fixed		nesh@…	Unreviewed	0	0	0	0	0	0
