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
This commit is contained in:
Karen Tracey 2008-09-18 17:10:16 +00:00
parent 7faa23d69c
commit 060919afa1
1 changed files with 1 additions and 1 deletions

View File

@ -680,7 +680,7 @@ class ModelAdmin(BaseModelAdmin):
if request.POST: # The user has already confirmed the deletion. if request.POST: # The user has already confirmed the deletion.
if perms_needed: if perms_needed:
raise PermissionDenied raise PermissionDenied
obj_display = str(obj) obj_display = force_unicode(obj)
obj.delete() obj.delete()
self.log_deletion(request, obj, obj_display) self.log_deletion(request, obj, obj_display)