Author: kmtracey
Date: 2008-09-18 12:10:16 -0500 (Thu, 18 Sep 2008)
New Revision: 9070

Modified:
   django/trunk/django/contrib/admin/options.py
Log:
Fixed #9129 -- Restored a force_unicode that was lost when unicode changes were 
merged to newforms-admin.  Thanks Ricardo & Ramiro.


Modified: django/trunk/django/contrib/admin/options.py
===================================================================
--- django/trunk/django/contrib/admin/options.py        2008-09-18 15:57:47 UTC 
(rev 9069)
+++ django/trunk/django/contrib/admin/options.py        2008-09-18 17:10:16 UTC 
(rev 9070)
@@ -680,7 +680,7 @@
         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)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to