mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #8278: fixed QueryDict.update(QueryDict). Thanks, julien.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8705 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -436,6 +436,14 @@ Traceback (most recent call last):
|
||||
...
|
||||
UnicodeEncodeError: ..., HTTP response headers must be in US-ASCII format
|
||||
|
||||
#
|
||||
# Regression test for #8278: QueryDict.update(QueryDict)
|
||||
#
|
||||
>>> x = QueryDict("a=1&a=2", mutable=True)
|
||||
>>> y = QueryDict("a=3&a=4")
|
||||
>>> x.update(y)
|
||||
>>> x.getlist('a')
|
||||
[u'1', u'2', u'3', u'4']
|
||||
"""
|
||||
|
||||
from django.http import QueryDict, HttpResponse
|
||||
|
||||
Reference in New Issue
Block a user