From 060919afa165a9ad208ba0aace54756891bf0718 Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Thu, 18 Sep 2008 17:10:16 +0000 Subject: [PATCH] Fixed #9129 -- Restored a force_unicode that was lost when unicode changes were merged to newforms-admin. Thanks Ricardo & Ramiro. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9070 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index 7f464baec3..0281fa84d6 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -680,7 +680,7 @@ class ModelAdmin(BaseModelAdmin): if request.POST: # The user has already confirmed the deletion. if perms_needed: raise PermissionDenied - obj_display = str(obj) + obj_display = force_unicode(obj) obj.delete() self.log_deletion(request, obj, obj_display)