mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #10184: QueryDicts with multiple values can now be safely pickled. Thanks, Alex Gaynor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -396,10 +396,18 @@ u'\ufffd'
|
||||
# Pickling a QueryDict #
|
||||
########################
|
||||
>>> import pickle
|
||||
>>> q = QueryDict('')
|
||||
>>> q1 = pickle.loads(pickle.dumps(q, 2))
|
||||
>>> q == q1
|
||||
True
|
||||
>>> q = QueryDict('a=b&c=d')
|
||||
>>> q1 = pickle.loads(pickle.dumps(q, 2))
|
||||
>>> q == q1
|
||||
True
|
||||
>>> q = QueryDict('a=b&c=d&a=1')
|
||||
>>> q1 = pickle.loads(pickle.dumps(q, 2))
|
||||
>>> q == q1
|
||||
True
|
||||
|
||||
######################################
|
||||
# HttpResponse with Unicode headers #
|
||||
|
||||
Reference in New Issue
Block a user