Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#11570 closed (fixed)

Request and Response objects page not using unicode responses in examples

Reported by: adamnelson 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 adamnelson 6 years ago.
Request and Response Objects now return unicode keys

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by adamnelson

Request and Response Objects now return unicode keys

comment:1 Changed 6 years ago by adamnelson

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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 6 years ago by Alex

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 6 years ago by gwilson

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:4 Changed 6 years ago by gwilson

(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