title: Django and old fashioned SQL queries
body: <p>I have a model as follows:</p>
  
  <pre><code>class call_log(models.Model):
      call_from = models.CharField(max_length=200)
      call_to = models.CharField(max_length=200)
      direction = models.CharField(max_length=200)
      end_time = models.CharField(max_length=200)
      duration = models.CharField(max_length=200)
      total = models.DecimalField(max_digits=8, decimal_places=5, blank=True, default=0)
      rate = models.DecimalField(max_digits=8, decimal_places=5, blank=True, default=0)
  </code></pre>
  
  <p>It has records for each individual call made by (different) numbers and sip endpoints. </p>
  
  <p>The SQL query I want to run is:</p>
  
  <pre><code>SELECT DISTINCT(call_from) AS start, sum(total) AS total 
  FROM polls_call_log GROUP BY start;
  </code></pre>
  
  <p>How do I write this in / for django? </p>