﻿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
5286	Non-HTML output in python manage.py adminindex <appname>	dan.fairs@…	Alexander Solovyov	"This is on Django trunk rev 6023, running on python 2.4.3 compiled from source on Mac OS X 10.4.10, running with PostgreSQL (again from source) 8.1.4.

I created a simple project 'qwacks' with a single app 'diary'. I created a very simple model (attached). Settings and configuration also attached. I then added a custom directory to TEMPLATE_DIRS, preparing to customise teh Django index page as described in http://www.djangoproject.com/documentation/tutorial02/.

Upon running python manage.py adminindex diary, I get the following output:


{{{
{% if perms.diary %}
<div class=""module""><h2>Diary</h2><table>
    {% if perms.diary.add_event or perms.diary.change_event %}
    <tr>
        <th>{% if perms.diary.change_event %}<a href=""diary/event/"">{% endif %}<django.utils.functional.__proxy__ object at 0x1381550>{% if perms.diary.change_event %}</a>{% endif %}</th>
        <td class=""x50"">{% if perms.diary.add_event %}<a href=""diary/event/add/"" class=""addlink"">{% endif %}Add{% if perms.diary.add_event %}</a>{% endif %}</td>
        <td class=""x75"">{% if perms.diary.change_event %}<a href=""diary/event/"" class=""changelink"">{% endif %}Change{% if perms.diary.change_event %}</a>{% endif %}</td>
    </tr>
    {% endif %}
</table></div>
{% endif %}

}}}

Note what appears to be a python object repr in the th tag.

Please let me know if you need any more information."		closed	contrib.admin	dev		fixed	admin adminindex manage.py repr str proxy		Accepted	1	0	0	0	0	0
