Skip to content

Commit

Permalink
newforms-admin: Fixed #6059. Javascript in the admin is no longer esc…
Browse files Browse the repository at this point in the history
…aped.

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6779 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jkocherhans committed Nov 30, 2007
1 parent c81b01e commit 17dbd78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/contrib/admin/options.py
Expand Up @@ -522,7 +522,7 @@ def add_view(self, request, form_url=''):
'adminform': adminForm, 'adminform': adminForm,
'is_popup': request.REQUEST.has_key('_popup'), 'is_popup': request.REQUEST.has_key('_popup'),
'show_delete': False, 'show_delete': False,
'media': media, 'media': mark_safe(media),
'inline_admin_formsets': inline_admin_formsets, 'inline_admin_formsets': inline_admin_formsets,
}) })
return self.render_change_form(model, c, add=True) return self.render_change_form(model, c, add=True)
Expand Down Expand Up @@ -597,7 +597,7 @@ def change_view(self, request, object_id):
'object_id': object_id, 'object_id': object_id,
'original': obj, 'original': obj,
'is_popup': request.REQUEST.has_key('_popup'), 'is_popup': request.REQUEST.has_key('_popup'),
'media': media, 'media': mark_safe(media),
'inline_admin_formsets': inline_admin_formsets, 'inline_admin_formsets': inline_admin_formsets,
}) })
return self.render_change_form(model, c, change=True) return self.render_change_form(model, c, change=True)
Expand Down

0 comments on commit 17dbd78

Please sign in to comment.