diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2006-02-27 19:13:41 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2006-02-27 19:13:41 +0000 |
| commit | eeb848bdbd9213c0efc656a3dbbade54d1908c85 (patch) | |
| tree | dfb9b4609f63366d58aa10415489138c90c59212 /django | |
| parent | 0df9fb8f9abdb0fbc1ba8b249ae9b71cc06af8e2 (diff) | |
Fixed #889 (Thanks, Tom Tobin)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2415 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/admin/views/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py index 972388952a..4aa31d81ae 100644 --- a/django/contrib/admin/views/main.py +++ b/django/contrib/admin/views/main.py @@ -418,7 +418,7 @@ def add_stage(request, app_label, module_name, show_delete=False, form_url='', p return HttpResponseRedirect(post_url_continue % pk_value) if request.POST.has_key("_popup"): return HttpResponse('<script type="text/javascript">opener.dismissAddAnotherPopup(window, %s, "%s");</script>' % \ - (pk_value, repr(new_object).replace('"', '\\"'))) + (pk_value, str(new_object).replace('"', '\\"'))) elif request.POST.has_key("_addanother"): request.user.add_message(msg + ' ' + (_("You may add another %s below.") % opts.verbose_name)) return HttpResponseRedirect(request.path) |
