title: Display aggregated sum in django html template using Model and Views
body: <p>I have created a model.py as below</p>
  
  <pre><code>class overallAccountDetail(models.Model):
  accountId = models.IntegerField(primary_key=True, unique=False, blank=False, 
  auto_created=True, null=False,
                                  editable=False)
  accountName = models.CharField(max_length=100)
  countryName = models.CharField(max_length=100)
  marketName = models.CharField(max_length=100)
  Alarm_Count = models.CharField(max_length=255,default='',blank=True)
  TT_Count = models.CharField ( max_length=255 , default='' , blank=True )
  </code></pre>
  
  <p>Views.py</p>
  
  <pre><code>def displayAlarmCount(request):
       totalAlarmCount=overallAccountDetail.objects.filter(marketName='Market1', accountName= 'Account1').aggregate(Sum('Alarm_Count')).values()
  
      ctx = {
      'totalAlarmCount': totalAlarmCount
      }
      return render_to_response('overallaccountdetail_filter.html', ctx, context_instance=RequestContext(request))
  </code></pre>
  
  <p>In HTML template </p>
  
  <pre><code>{% block content %}
   &lt;form method="get"&gt;
  {{ filter.form.as_p }}
  &lt;button type="submit"&gt;Search&lt;/button&gt;
  &lt;/form&gt;
  filter.qs.totalAlarmCount&lt;br&gt;
  totalAlarmCount
  &lt;p&gt;&lt;strong&gt;Total Alarm_Count:&lt;/strong&gt;{{totalAlarmCount}}&lt;/p&gt;
  &lt;ul&gt;
  {% for overallAccountDetail in filter.qs %}
  &lt;li&gt;{{ overallAccountDetail.Alarm_Count }}&lt;/li&gt;
  {% endfor %}
  &lt;/ul&gt;
  </code></pre>
  
  <p>Now the issue is when i am executing the below query in shell, i am getting the sum of all alarm count of Account1 corresponding to Market 1. But when i am displaying same on html .. it is showing nothing. Please advise what's the problem in my code. The below query shows the exact value in shell that i want to present on the webpage</p>
  
  <pre><code> totalAlarmCount=overallAccountDetail.objects.filter(marketName='Market1', 
   accountName= 'Account1').aggregate(Sum('Alarm_Count')).values()
  </code></pre>