Ticket #9129: t9129-r9067.diff

File t9129-r9067.diff, 534 bytes (added by Ramiro Morales, 16 years ago)

A possible fix using force_unicode()

  • django/contrib/admin/options.py

    diff -r 7749d219b075 django/contrib/admin/options.py
    a b  
    680680        if request.POST: # The user has already confirmed the deletion.
    681681            if perms_needed:
    682682                raise PermissionDenied
    683             obj_display = str(obj)
     683            obj_display = force_unicode(obj)
    684684            obj.delete()
    685685           
    686686            self.log_deletion(request, obj, obj_display)
Back to Top