#20017: format_html not working with lazy objects on jython
-------------------------------+--------------------
     Reporter:  andreas@…      |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Python 2       |    Version:  1.5
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  1
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 django.utils.html.format_html does not convert lazy string objects to
 unicode on jython. E.g. the hidden csrf_token field looks like follows:

 {{{
 <input type="hidden" name="csrfmiddlewaretoken"
 value="&lt;django.utils.functional.__proxy__ object at 0x1c7&gt;">
 }}}

 I attached a patch that fixes this bug.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20017>
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to