Django: Summing values of records grouped by foreign key
- by Dan0
Hi there
In django, given the following models (slightly simplified), I'm struggling to work out how I would get a view including sums of groups
class Client(models.Model):
api_key = models.CharField(unique=True, max_length=250, primary_key=True)
name = models.CharField(unique=True, max_length=250)
class…