Ticket #889: trunk-admin_popup_str_fix.diff
File trunk-admin_popup_str_fix.diff, 840 bytes (added by , 19 years ago) |
---|
-
contrib/admin/views/main.py
418 418 return HttpResponseRedirect(post_url_continue % pk_value) 419 419 if request.POST.has_key("_popup"): 420 420 return HttpResponse('<script type="text/javascript">opener.dismissAddAnotherPopup(window, %s, "%s");</script>' % \ 421 (pk_value, repr(new_object).replace('"', '\\"')))421 (pk_value, str(new_object).replace('"', '\\"'))) 422 422 elif request.POST.has_key("_addanother"): 423 423 request.user.add_message(msg + ' ' + (_("You may add another %s below.") % opts.verbose_name)) 424 424 return HttpResponseRedirect(request.path)