#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 coldmind):

 Replying to [comment:7 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''`.

 I described problem in
 https://code.djangoproject.com/ticket/24964#comment:6, this is not related
 to actual problem

--
Ticket URL: <https://code.djangoproject.com/ticket/24964#comment:8>
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.8810e38135d4f6053c96cb4a8d587a5b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to