Ticket #6059: safe_media.diff

File safe_media.diff, 916 bytes (added by Karen Tracey <kmtracey@…>, 17 years ago)
  • django/contrib/admin/options.py

     
    522522            'adminform': adminForm,
    523523            'is_popup': request.REQUEST.has_key('_popup'),
    524524            'show_delete': False,
    525             'media': media,
     525            'media': mark_safe(media),
    526526            'inline_admin_formsets': inline_admin_formsets,
    527527        })
    528528        return self.render_change_form(model, c, add=True)
     
    597597            'object_id': object_id,
    598598            'original': obj,
    599599            'is_popup': request.REQUEST.has_key('_popup'),
    600             'media': media,
     600            'media': mark_safe(media),
    601601            'inline_admin_formsets': inline_admin_formsets,
    602602        })
    603603        return self.render_change_form(model, c, change=True)
Back to Top