class Choice(models.Model):
    text = models.CharField(max_length=200)

def calculateVotes(self):
    return Vote.objects.filter(choice=self).count()
votes = property(calculateVotes)
how to access dictionary element in django template?