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']}>
From stackoverflow
-
Do you mean?
data.setlist( 'test', [u'1', u'2'] )dmi : Brilliant, thank you so much!S.Lott : Sorry: not brilliant. Just more patient at searching the documentation.dmi : Can't deny it's a RTFM question and I missed this method in the docs :)S.Lott : @dmi: Don't blame me as brilliant -- patient, perhaps.
0 comments:
Post a Comment