Opened 5 years ago

Closed 5 years ago

#23522 closed Bug (fixed)

reverse() should return a text string, not a byte string

Reported by: Jon Dufresne Owned by: nobody
Component: Core (URLs) Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

<https://groups.google.com/d/msg/django-developers/MVpcOtt9oXc/9Qzjv88cMSEJ>

As of now, reverse() returns a byte string. It should return a Unicode string (or text). URLs are used as text in many different contexts: HTML template, mail, JSON, etc.

Pull request to follow.

Change History (3)

comment:2 Changed 5 years ago by Claude Paroz

Has patch: set
Triage Stage: UnreviewedAccepted

comment:3 Changed 5 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In c1ef234e310fb984ced37eac8c8b90f5b6155e5f:

Fixed #23522 -- Changed reverse() to return a Unicode string; not bytes

Note: See TracTickets for help on using tickets.
Back to Top