title: Django Aggregation: Sum return value only?
body: <p>I have a list of values paid and want to display the total paid. I have used aggregation and <code>Sum</code> to calculate the values together. The problem is,I just want the total value printed out, but aggregation prints out: <code>{'amount__sum': 480.0}</code> (480.0 being the total value added.</p>
  <p>In my View, I have:</p>
  <pre><code>    from django.db.models import Sum
  
      total_paid = Payment.objects.all.aggregate(Sum('amount'))
  </code></pre>
  <p>And to show the value on the page, I have a mako template with the following:</p>
  <pre><code>    &lt;p&gt;&lt;strong&gt;Total Paid:&lt;/strong&gt; ${total_paid}&lt;/p&gt;
  </code></pre>
  <p>How would I get it to show <code>480.0</code> instead of <code>{'amount__sum': 480.0}</code>?</p>