Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#11570 closed (fixed)

Request and Response objects page not using unicode responses in examples

Reported by: Adam Nelson Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

This is almost pedantic, but the 'Request and Response Objects' page examples are not giving responses in unicode. This patch changes it. The only reason this matters is because I was having trouble with updating a copied POST dictionary and one of the avenues I went down was whether there was a problem mixing unicode and non-unicode keys. This makes it clear that no matter what you do, all keys are made unicode by QueryDict (or at least, that's how it appears).

http://docs.djangoproject.com/en/dev/ref/request-response/

Attachments (1)

request-response.diff (1.1 KB) - added by Adam Nelson 7 years ago.
Request and Response Objects now return unicode keys

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by Adam Nelson

Attachment: request-response.diff added

Request and Response Objects now return unicode keys

comment:1 Changed 7 years ago by Adam Nelson

The patch in #9465 includes this patch - so if that ticket goes through, this ticket can be closed without the patch going anywhere.

comment:2 Changed 7 years ago by Alex Gaynor

Triage Stage: UnreviewedAccepted

comment:3 Changed 7 years ago by Gary Wilson

Resolution: fixed
Status: newclosed

(In [11992]) Fixed #11570 -- Changed output in examples to unicode strings, thanks adamnelson.

comment:4 Changed 7 years ago by Gary Wilson

(In [11993]) [1.1.X] Fixed #11570 -- Changed output in examples to unicode strings, thanks adamnelson.

Backport of r11992 from trunk.

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