#24898: QueryDict serialization into session
---------------------------+-----------------------------------------------
Reporter: EralpB | Owner: nobody
Type: Bug | Status: new
Component: | Version: 1.8
Uncategorized |
Severity: Normal | Keywords: session, serialization, QueryDict
Triage Stage: | Has patch: 0
Unreviewed |
Easy pickings: 1 | UI/UX: 0
---------------------------+-----------------------------------------------
We are having an issue with QueryDict serialization, one system is Linux
the other one is Windows.
----
{{{
dict2 = {'a': 'one', 'b': 'two', }
qdict = QueryDict('', mutable=True)
qdict.update(dict2)
print qdict
request.session['lal'] = qdict
#and then in another view I do:
print request.session['lal']
}}}
----
This outputs:
Linux:
{{{
<QueryDict: {u'a': ['one'], u'b': ['two']}>
{u'a': u'one', u'b': u'two'}
}}}
Windows:
{{{
<QueryDict: {u'a': ['one'], u'b': ['two']}>
{u'a': [u'one'], u'b': [u'two']}
}}}
Why the difference?
----
Windows:
{{{
Django==1.8
django-ckeditor==4.4.8
django-crispy-forms==1.4.0
django-enumfield==1.2.1
django-phonenumber-field==0.7.2
django-social-auth==0.7.28
easy-thumbnails==2.2
httplib2==0.9.1
oauth2==1.5.211
oauthlib==0.7.2
phonenumbers==7.0.4
Pillow==2.8.1
psycopg2==2.6
PyJWT==1.1.0
python-openid==2.2.5
python-slugify==1.0.2
python-social-auth==0.2.9
requests==2.7.0
requests-oauthlib==0.5.0
six==1.9.0
Unidecode==0.4.17
}}}
Linux:
{{{
Django==1.8
django-ckeditor==4.4.8
django-crispy-forms==1.4.0
django-enumfield==1.2.1
django-phonenumber-field==0.7.2
django-social-auth==0.7.28
easy-thumbnails==2.2
httplib2==0.9.1
oauth2==1.5.211
oauthlib==0.7.2
phonenumbers==7.0.4
Pillow==2.8.1
psycopg2==2.6
PyJWT==1.1.0
python-openid==2.2.5
python-slugify==1.0.2
python-social-auth==0.2.9
requests==2.7.0
requests-oauthlib==0.5.0
six==1.9.0
Unidecode==0.4.17
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24898>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.9d278d597a7698c57355aa1d4927132f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.