ukecode / controlle

Aplicação para gerenciar gastos pessoais
1 stars 1 forks source link

Somatório #17

Open henriquensco opened 4 years ago

henriquensco commented 4 years ago

Usar aggragate

Exemplo from django.db.models import Avg, Count, Min, Sum Books.objects.all().aggregate(Sum('price'))

https://docs.djangoproject.com/en/3.0/topics/db/aggregation/