Ticket #11683: 11683-response_add-dismissAddAnotherPopup-mimetype.diff
File 11683-response_add-dismissAddAnotherPopup-mimetype.diff, 807 bytes (added by , 15 years ago) |
---|
-
django/contrib/admin/options.py
607 607 if request.POST.has_key("_popup"): 608 608 return HttpResponse('<script type="text/javascript">opener.dismissAddAnotherPopup(window, "%s", "%s");</script>' % \ 609 609 # escape() calls force_unicode. 610 (escape(pk_value), escape(obj)) )610 (escape(pk_value), escape(obj)), mimetype="text/html") 611 611 elif request.POST.has_key("_addanother"): 612 612 self.message_user(request, msg + ' ' + (_("You may add another %s below.") % force_unicode(opts.verbose_name))) 613 613 return HttpResponseRedirect(request.path)