diff options
| author | Honza Král <honza.kral@gmail.com> | 2009-12-28 16:35:23 +0000 |
|---|---|---|
| committer | Honza Král <honza.kral@gmail.com> | 2009-12-28 16:35:23 +0000 |
| commit | f911df19a455246198b0c8c81ab96bf2abec04f8 (patch) | |
| tree | 0c0bfb72d622994419492db943d9d37857224f97 /docs/ref/request-response.txt | |
| parent | 695de8cc9145e139c2b22e05aa44f5ac04da6f85 (diff) | |
[soc2009/model-validation] Merget to trunk at r12009
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12014 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/request-response.txt')
| -rw-r--r-- | docs/ref/request-response.txt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 77d991bc1f..9dcf004149 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -298,9 +298,9 @@ a subclass of dictionary. Exceptions are outlined here: >>> q = q.copy() # to make it mutable >>> q.update({'a': '2'}) >>> q.getlist('a') - ['1', '2'] + [u'1', u'2'] >>> q['a'] # returns the last - ['2'] + [u'2'] .. method:: QueryDict.items() @@ -309,7 +309,7 @@ a subclass of dictionary. Exceptions are outlined here: >>> q = QueryDict('a=1&a=2&a=3') >>> q.items() - [('a', '3')] + [(u'a', u'3')] .. method:: QueryDict.iteritems() @@ -329,7 +329,7 @@ a subclass of dictionary. Exceptions are outlined here: >>> q = QueryDict('a=1&a=2&a=3') >>> q.values() - ['3'] + [u'3'] .. method:: QueryDict.itervalues() @@ -369,7 +369,7 @@ In addition, ``QueryDict`` has the following methods: >>> q = QueryDict('a=1&a=2&a=3') >>> q.lists() - [('a', ['1', '2', '3'])] + [(u'a', [u'1', u'2', u'3'])] .. method:: QueryDict.urlencode() @@ -598,4 +598,3 @@ types of HTTP responses. Like ``HttpResponse``, these subclasses live in .. class:: HttpResponseServerError Acts just like :class:`HttpResponse` but uses a 500 status code. - |
