#5641: ugettext_lazy in model's default
----------------------+-----------------------------------------------------
   Reporter:  permon  |                Owner:  permon              
     Status:  new     |            Component:  Internationalization
    Version:  SVN     |           Resolution:                      
   Keywords:          |                Stage:  Accepted            
  Has_patch:  1       |           Needs_docs:  0                   
Needs_tests:  0       |   Needs_better_patch:  1                   
----------------------+-----------------------------------------------------
Comment (by mtredinnick):

 Replying to [comment:5 permon]:
 >  Maybe it could be good to add type bool to nonconverted types in
 force_unicode.

 The boolean type is already covered in the things that "strings_only" will
 ignore. In Python 2, a bool is an instance of int, so {{{isinstance(True,
 int)}}} is always true.

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