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:
parent
7faa23d69c
commit
060919afa1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue