#4463: Admin crashed if None returned by __unicode__ and list_display not 
defined
--------------------------------------------+-------------------------------
   Reporter:  hidded <[EMAIL PROTECTED]>      |                Owner:  adrian   
      
     Status:  closed                        |            Component:  Admin 
interface
    Version:  other branch                  |           Resolution:  invalid    
    
   Keywords:  unicode unicode-branch admin  |                Stage:  Unreviewed 
    
  Has_patch:  0                             |           Needs_docs:  0          
    
Needs_tests:  0                             |   Needs_better_patch:  0          
    
--------------------------------------------+-------------------------------
Changes (by mtredinnick):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 (I'm guessing this is on the unicode branch.)
 
 If your {{{__unicode__}}} method is returning None, that's a bug in your
 code. You must '''always''' return a unicode object from
 {{{___unicode___}}} and a str object from {{{__str__}}}. That's a Python
 requirement.
 
 Try returning unicode(self.name).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4463#comment:2>
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