Hopefully this is an easy one.
Problem: Django QueryDict wraps values in lists.
This:
data[u'test'] = [u'1', u'2']
Becomes:
<QueryDict: {u'test': [[u'1', u'2']]}>
How do I make it:
<QueryDict: {u'test': [u'1', u'2']}>
Do you mean?
data.setlist( 'test', [u'1', u'2'] )
http://docs.djangoproject.com/en/dev/ref/request-response/?from=olddocs#django.http.QueryDict.setlist
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With