[1.1.X] Fixed #11570 -- Changed output in examples to unicode strings, thanks adamnelson.
Backport of r11992 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11993 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
498c31364c
commit
ed192ea56f
|
@ -298,9 +298,9 @@ a subclass of dictionary. Exceptions are outlined here:
|
||||||
>>> q = q.copy() # to make it mutable
|
>>> q = q.copy() # to make it mutable
|
||||||
>>> q.update({'a': '2'})
|
>>> q.update({'a': '2'})
|
||||||
>>> q.getlist('a')
|
>>> q.getlist('a')
|
||||||
['1', '2']
|
[u'1', u'2']
|
||||||
>>> q['a'] # returns the last
|
>>> q['a'] # returns the last
|
||||||
['2']
|
[u'2']
|
||||||
|
|
||||||
.. method:: QueryDict.items()
|
.. method:: QueryDict.items()
|
||||||
|
|
||||||
|
@ -309,7 +309,7 @@ a subclass of dictionary. Exceptions are outlined here:
|
||||||
|
|
||||||
>>> q = QueryDict('a=1&a=2&a=3')
|
>>> q = QueryDict('a=1&a=2&a=3')
|
||||||
>>> q.items()
|
>>> q.items()
|
||||||
[('a', '3')]
|
[(u'a', u'3')]
|
||||||
|
|
||||||
.. method:: QueryDict.iteritems()
|
.. method:: QueryDict.iteritems()
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ a subclass of dictionary. Exceptions are outlined here:
|
||||||
|
|
||||||
>>> q = QueryDict('a=1&a=2&a=3')
|
>>> q = QueryDict('a=1&a=2&a=3')
|
||||||
>>> q.values()
|
>>> q.values()
|
||||||
['3']
|
[u'3']
|
||||||
|
|
||||||
.. method:: QueryDict.itervalues()
|
.. method:: QueryDict.itervalues()
|
||||||
|
|
||||||
|
@ -369,7 +369,7 @@ In addition, ``QueryDict`` has the following methods:
|
||||||
|
|
||||||
>>> q = QueryDict('a=1&a=2&a=3')
|
>>> q = QueryDict('a=1&a=2&a=3')
|
||||||
>>> q.lists()
|
>>> q.lists()
|
||||||
[('a', ['1', '2', '3'])]
|
[(u'a', [u'1', u'2', u'3'])]
|
||||||
|
|
||||||
.. method:: QueryDict.urlencode()
|
.. method:: QueryDict.urlencode()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue