﻿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
3724	Add Links for ImageField and FileField in admin_list.py	nicholasdsj@…	nobody	"When I added ImageField or FileField to '''list_display_links''', the result was not what I expected.

I saw the code in admin_list.py, the function '''items_for_result''', there was no check for ImageField and FileFiled, I suggested to add following snippts:

{{{
# Line 176
            elif isinstance(f, models.ImageField) or isinstance(f, models.FileField):
                if field_val is not None:
                    result_repr = ('<a href=""%s	%s"">%s</a>' % (settings.MEDIA_URL, field_val, field_val))
                else:
                    result_repr = EMPTY_CHANGELIST_VALUE
}}}

I hope the django team can consider about that.

Thanks in advance."		closed	contrib.admin	dev		invalid	ImageField FileField	toke-django@…	Design decision needed	0	0	0	0	0	0
