Re: Group by using DJango ORM

2013-09-19 Thread Russell Keith-Magee
On Fri, Sep 20, 2013 at 7:34 AM, Nicolas Mendoza wrote: > 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

Group by using DJango ORM

2013-09-19 Thread Nicolas Mendoza
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