Opened 10 years ago
Closed 10 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: | dev |
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:1 by , 10 years ago
comment:2 by , 10 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Pull request:
https://github.com/django/django/pull/3239