#24964: Infinite migrations with empty help_text via ugettext_lazy
-------------------------------------+-------------------------------------
     Reporter:  gimbo                |                    Owner:  coldmind
         Type:  Bug                  |                   Status:  assigned
    Component:  Migrations           |                  Version:  1.8
     Severity:  Release blocker      |               Resolution:
     Keywords:  migrations,          |             Triage Stage:  Accepted
  internationalisation               |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by knbk):

 Replying to [comment:5 coldmind]:
 > Or, the question is more why
 >
 > {{{
 > ipdb> old_field.help_text
 > u''
 > ipdb> new_field.help_text
 > <django.utils.functional.__proxy__ object at 0x10d78bf50>
 > }}}

 `__repr__` is not in any way set on `__proxy__`, so it inherits the
 default behaviour from `object`, which is what you're seeing. If you use
 `str(new_field.help_text)`, you should see `u''`.

--
Ticket URL: <https://code.djangoproject.com/ticket/24964#comment:7>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.34068e6782d49cd997b4f8a55dce06a3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to