Ticket #11570: request-response.diff
File request-response.diff, 1.1 KB (added by , 15 years ago) |
---|
-
Users/adam/Development/django-trunk/docs/ref/request-response.txt
307 307 >>> q = q.copy() # to make it mutable 308 308 >>> q.update({'a': '2'}) 309 309 >>> q.getlist('a') 310 [ '1','2']310 [u'1', u'2'] 311 311 >>> q['a'] # returns the last 312 [ '2']312 [u'2'] 313 313 314 314 .. method:: QueryDict.items() 315 315 … … 318 318 319 319 >>> q = QueryDict('a=1&a=2&a=3') 320 320 >>> q.items() 321 [( 'a', '3')]321 [(u'a', '3')] 322 322 323 323 .. method:: QueryDict.iteritems() 324 324 … … 338 338 339 339 >>> q = QueryDict('a=1&a=2&a=3') 340 340 >>> q.values() 341 [ '3']341 [u'3'] 342 342 343 343 .. method:: QueryDict.itervalues() 344 344 … … 378 378 379 379 >>> q = QueryDict('a=1&a=2&a=3') 380 380 >>> q.lists() 381 [( 'a', ['1', '2', '3'])]381 [(u'a', ['1', '2', '3'])] 382 382 383 383 .. method:: QueryDict.urlencode() 384 384