#25424: "AttributeError: '__proxy__' object has no attribute 'decode'" using
reverse_lazy in test client
-------------------------------------+-------------------------------------
     Reporter:  SoftwareMaven        |                    Owner:
                                     |  SoftwareMaven
         Type:  Bug                  |                   Status:  closed
    Component:  Testing framework    |                  Version:  1.8
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz <claude@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"1a09b3c398b42800de864023dad872d83b196181" 1a09b3c]:
 {{{
 #!CommitTicketReference repository=""
 revision="1a09b3c398b42800de864023dad872d83b196181"
 Fixed #25424 -- Use force_str for test client URLs.

 urlparse() fails with an AttributeError ("'__proxy__' object has no
 attribute 'decode'") if reverse_lazy is used to look up the URL
 (this is exactly the same problem that caused ticket #18776). The
 solution is to use force_str() on the path before handing it to
 urlparse().
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25424#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 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/071.137847fcb45f4c321b2f0ee313222547%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to