title: summing up values from database in DJANGO template
body: <p>I have a table that contains "username" and "grades". The grades are in format of A+, A, A-, B+ and so on. I am trying to display a total grade for each user with numeric values. For example:</p>
  
  <p>John  A+   </p>
  
  <p>Jerry B+</p>
  
  <p>John  C-</p>
  
  <p>Tom   A-</p>
  
  <p>Jerry B+</p>
  
  <p>So if A+ = 10 and everything else following as A =9 and A- =8 and so on, how do I calculate the total grade John earned. I am trying to do this in a DJANGO template (.html) file and can't seem to implement a counter at all</p>