Actually what's the best way for do a group by using django ORM?
I know workarounds like combinate "values" with "Anotate", etc. but I
wil like know your favorite workaround without rawSQL and not manager
based , only Django ORM ;-)
Example.objects.values('type').annotate(dcount=Count('type')) .
Here an example: https://gist.github.com/6625035
2013/9/19 Hélio Miranda :
> Good.
> I have my client application server, and was trying to send an id parameter
> via a post like this:
> $scope.deleteIMG = function(ID){
> $http({
> method: 'POST',,
> url: "http://localhost:8080/onpitch/delImagePla
2 matches
Mail list logo