2009/3/21 Filip Gruszczyński <grusz...@gmail.com> > > I have a following question. I started using 1.1 alpha and encountered > such an issue. Should I consider it a bug or is it working properly? > If it is not, is there any workaround, that would get me an average > for a certain number of elements. > > >>> Salary.objects.all().aggregate(Avg('value')) > {'value__avg': 10699.9} > >>> Salary.objects.all()[1:10].aggregate(Avg('value')) > {'value__avg': 10699.9} > >>> > > If it is a bug, could you point me to a place, where I could try to > take a look and fix it? I need it and would like to use SQL. > > -- > Filip Gruszczyński > > > > Take a look at this thread: http://groups.google.com/group/django-users/browse_thread/thread/4ee4d8507e41213e
Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---