#10632: rare bug with log deletion in admin
-------------------------------------------+--------------------------------
          Reporter:  sdfsdhgjkbmnmxc       |         Owner:  nobody 
            Status:  new                   |     Milestone:  1.1    
         Component:  django.contrib.admin  |       Version:  SVN    
        Resolution:                        |      Keywords:  logging
             Stage:  Accepted              |     Has_patch:  0      
        Needs_docs:  0                     |   Needs_tests:  0      
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Comment (by ramiro):

 This could be an user error because `object_repr` is already the result of
 
[http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/options.py?rev=10314#L1001
 calling] `force_unicode()` on the model instance being deleted before
 `log_deletion() is called`. Maybe the `__unicode__()` model  method
 provided by the user isn't returning an Unicode string?.

 OTOH, we seem to be already being permissive with this error because we
 are calling `force_unicode()` twice when showing the message to the user:
 
http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/options.py?rev=10314#L1005

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10632#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
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 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to