#8774: ImageField errors in admin inline editing
--------------------------------------+-------------------------------------
          Reporter:  ramin            |         Owner:  nobody                 
            Status:  reopened         |     Milestone:  1.0                    
         Component:  Template system  |       Version:  SVN                    
        Resolution:                   |      Keywords:  imagefield admin inline
             Stage:  Unreviewed       |     Has_patch:  0                      
        Needs_docs:  0                |   Needs_tests:  0                      
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Comment (by vung):

 If you add to the Image model the following:

 {{{
     def __unicode__(self):
         return self.file
 }}}

 then you get what seems to be the above traceback.

 `force_unicode` assumes that if an object has an `__unicode__` attribute
 then passing the object to unicode() will either return an unicode object
 or raise `UnicodeDecodeError`.

 This of course will fail if someone defines an `__unicode __` method that
 doesn't return an unicode object, or raises some other exception.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8774#comment:9>
Django Code <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 [email protected]
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