Ticket #6059: safe_media.diff
File safe_media.diff, 916 bytes (added by , 17 years ago) |
---|
-
django/contrib/admin/options.py
522 522 'adminform': adminForm, 523 523 'is_popup': request.REQUEST.has_key('_popup'), 524 524 'show_delete': False, 525 'media': m edia,525 'media': mark_safe(media), 526 526 'inline_admin_formsets': inline_admin_formsets, 527 527 }) 528 528 return self.render_change_form(model, c, add=True) … … 597 597 'object_id': object_id, 598 598 'original': obj, 599 599 'is_popup': request.REQUEST.has_key('_popup'), 600 'media': m edia,600 'media': mark_safe(media), 601 601 'inline_admin_formsets': inline_admin_formsets, 602 602 }) 603 603 return self.render_change_form(model, c, change=True)