title: Django QuerySet not serializable
body: <p>I have the following function I'm using to make <code>Ajax</code> calls:</p>
  
  <pre><code> 30 import json
   31
   32 def get_info(request):
   33    run = Run.objects.values('nvp_build', 'lports', 'lswitch_stt')
   34    measurements = Measurements.objects.values('maxfield')
   35    apistats = APIStats.objects.values('num')
   36    clusterdata = ClusterData.objects.values('memory_usage')
   37 
   38    response_data = json.dumps(run)
   39    return HttpResponse(response_data, mimetype='application/json')
  </code></pre>
  
  <p>so when make the call to that method in my <code>views.py</code> I get:</p>
  
  <pre><code> [{'lports': 4056, 'nvp_build': u'31559', 'lswitch_stt': 2000}, 
       {'lports': 102, 'nvp_build': u'30194', 'lswitch_stt': 40}, 
       {'lports': 4056, 'nvp_build': u'31299', 'lswitch_stt': 2000}, 
       {'lports': 4056, 'nvp_build': u'31350', 'lswitch_stt': 2000}, 
       {'lports': 4056, 'nvp_build': u'31481', 'lswitch_stt': 2000}, 
       {'lports': 4056, 'nvp_build': u'31489', 'lswitch_stt': 2000}, 
       {'lports': 4056, 'nvp_build': u'31494', 'lswitch_stt': 2000}, 
       {'lports': 4056, 'nvp_build': u'31559', 'lswitch_stt': 2000}] 
     is not JSON serializable
  </code></pre>
  
  <p>However, when I run it manually, and utilize the above array and do <code>json.dumps()</code> it works ... 
  any clues?</p>