title: Django - queryset output formatting
body: <p>I am fairly new to Django, ran into the following problem: I have a model FundPrice storing daily prices of particular funds. I would like to retrieve this from a database and pass to a js based chart.</p>
  
  <p>views.py</p>
  
  <pre><code>from django.shortcuts import render
  from fundmgmt.models import FundPrice
  
  def fund_details_cards(request):
      fp = list(FundPrice.objects.values('fund_id','value_date','price'))
  
  return render(request,"fundmgmt/fund_detail_cards.html",
                {'fund_prices': fp})
  </code></pre>
  
  <p>In my template, by using <code>{{ fund_prices }}</code> reference, the result I get  is the following:</p>
  
  <pre><code>[{'fund_id': 1, 'value_date': datetime.date(2016, 11, 9), 'price': Decimal('2.574557')}, 
   {'fund_id': 1, 'value_date': datetime.date(2016, 11, 8), 'price': Decimal('2.572507')}, 
   {'fund_id': 1, 'value_date': datetime.date(2016, 11, 7), 'price': Decimal('2.571724')}]
  </code></pre>
  
  <p>Can I somehow format this output? E.g. get rid of these <code>datetime.date(</code>, <code>Decimal(</code> field type indicators?</p>
  
  <p>What I would like to print is the following:</p>
  
  <pre><code>[{'fund_id': 1, 'value_date': '2016-11-09', 'price': '2.574557'}, 
   {'fund_id': 1, 'value_date': '2016-11-08', 'price': '2.572507'}, 
   {'fund_id': 1, 'value_date': '2016-11-07', 'price': '2.571724'}]
  </code></pre>