title: How to encode a django query set specific field to a Json response?
body: <p>I do a filter to obtain a particular set of objects from django data model. I need to encode only a single field of that objects to a json response.</p>
  
  <p>e.g.: Item has an attribute called <strong>name</strong>.</p>
  
  <pre><code>qs_available = Item.objects.filter(Type=1).values.('name').???
  
  return HttpResponse(json.dumps(qs_available), content_type='application/json')
  </code></pre>
  
  <p>How do I return the list of name values as a json response?</p>