Opened 15 years ago

Closed 14 years ago

Last modified 14 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: no UI/UX: no

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 15 years ago.
Request and Response Objects now return unicode keys

Download all attachments as: .zip

Change History (5)

by Adam Nelson, 15 years ago

Attachment: request-response.diff added

Request and Response Objects now return unicode keys

comment:1 by Adam Nelson, 15 years ago

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 by Alex Gaynor, 15 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Gary Wilson, 14 years ago

Resolution: fixed
Status: newclosed

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

comment:4 by Gary Wilson, 14 years ago

(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