So I have a query like
SELECT sum(project_shares) as shares, count(*) as count FROM vv_projects
Is there any syntax like below in django 2.0
Projects.objects.aggregrate(Sum('project_shares'),Count('*'))
and output like
{'project_shares_sum':9,'count':8}
In django 2.0 count is used aggregate foreign key references so I am confused. If not I have add another orm query line to get the count.