#19421: When RelatedModel.__unicode__ fails, InlineModelAdmin are not displayed
-------------------------------+--------------------------------------
     Reporter:  benjaoming     |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  contrib.admin  |                  Version:  1.4
     Severity:  Normal         |               Resolution:  worksforme
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  1              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by benjaoming):

 Yesterday, I also ran out of time trying to debug this on an invalid ascii
 string ("æøå" instead of u"æøå"). It was fed to a proxy object
 (ugettext_lazy) inside a template tag, and when the rendering happened, it
 only failed with DEBUG=False.

 Something strange happens in the template compiler, in this case using
 classy-tags and a template tag from django-cms. Somehow, a
 DjangoUnicodeDecodeError is lost when DEBUG=True, but replacing that
 exception (in `django.utils.encoding`) with a different exception class,
 and it gets raised.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19421#comment:5>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to