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 context_processor 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to