Re: Please help with complex aggregation/annotation issue

2012-01-19 Thread Ian Clelland
On Wed, Jan 18, 2012 at 1:03 AM, Salvatore Iovene < salvatore.iov...@gmail.com> wrote: > Hi, > I apologize for the lousy title, but I really didn't know how to summarize > the problem I'm facing. I have the following model: > > class MessierMarathon(models.Model): > messier_number =

Re: Please help with complex aggregation/annotation issue

2012-01-19 Thread Bill Beal
Each user nominates just one Messier number/image pair? Do you need to keep track of the users to verify that each one votes only once? On Wed, Jan 18, 2012 at 4:03 AM, Salvatore Iovene < salvatore.iov...@gmail.com> wrote: > Hi, > I apologize for the lousy title, but I really didn't know how

Please help with complex aggregation/annotation issue

2012-01-18 Thread Salvatore Iovene
Hi, I apologize for the lousy title, but I really didn't know how to summarize the problem I'm facing. I have the following model: class MessierMarathon(models.Model): messier_number = models.IntegerField() image = models.ForeignKey(Image) nominations = models.IntegerField(default =