title: How to change a django QueryDict to Python Dict?
body: <p>Let's pretend I have the following QueryDict: </p>
  
  <pre><code>&lt;QueryDict: {u'num': [0], u'var1': [u'value1', u'value2'], u'var2': [u'8']}&gt;
  </code></pre>
  
  <p>I'd like to have a dictionary out of this, eg:</p>
  
  <pre><code>{'num': [0], 'var1':['value1', 'value2'], 'var2':['8']}
  </code></pre>
  
  <p>(I don't care if the unicode symbol <code>u</code> stays or goes.)</p>
  
  <p>If I do <code>queryDict.dict()</code>, as suggested by the <a href="https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.QueryDict.dict">django site</a>, I lose the extra values belonging to <code>var1</code>, eg:</p>
  
  <pre><code>{'num': [0], 'var1':['value2'], 'var2':['8']}
  </code></pre>
  
  <p>I was thinking of doing this:</p>
  
  <pre><code>myDict = {}
  for key in queryDict.iterkeys():
      myDict[key] = queryDict.getlist(key)
  </code></pre>
  
  <p>Is there a better way? </p>