﻿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
17239	mark_safe(media) in django admin Opzioni	Riccardo Di Virgilio	Piotr Banaszkiewicz	"a minor bug in django admin. 

in django.contrib.admin.options mark_safe is called to render media. 
in add_view and change_view we can find mark_safe(media) 

in changelist_view media is injected as an object (without mark_safe) 
i propose to pass the media object to the template (without 
mark_safe), because i use a template tag that adds media. 

so i check in the context if there is 'media' key, and then merge my 
own list of javascript and css with the existing django media. 

but i cannot do this if the media object is rendered before it is 
passed to the context processor."	Cleanup/optimization	closed	contrib.admin	dev	Normal	fixed	mark_safe media		Ready for checkin	1	0	0	0	0	0
