title: python3 making list of dict using lamba
body: <pre><code>def querySet_to_list(qs):
      l = list()
      for i in qs:
          d = dict()
          for k,v in i.items():
              d[k] = v
          l.append(d)
      return l
  </code></pre>
  
  <p>I want to convert this function to inline syntax.</p>
  
  <p>e.g </p>
  
  <pre><code>list(map(lambda x:x.items(), [q for q in qs]))  # this not working...
  </code></pre>
  
  <p>This work is difficult for me.</p>
  
  <p>I use this code in django view</p>
  
  <pre><code>def get_software(request):
      ss = Software.objects.values()
      return JsonResponse(querySet_to_list(ss), safe=False)
  </code></pre>