QueryDict.dict()
Returns dict
representation of QueryDict
. For every (key, list) pair in QueryDict
, dict
will have (key, item), where item is one element of the list, using same logic as QueryDict.__getitem__()
:
>>> q = QueryDict('a=1&a=3&a=5') >>> q.dict() {'a': '5'}
Please login to continue.