On Tue, Apr 16, 2013 at 1:39 PM, Shabda Raaj <sha...@agiliq.com> wrote:

> I am trying to get a field in a queryset which depends on the result
> of the annotations. I tried using extra on an annotated queryset,
> which doesn't seem to work.
>

Does something like this work? .annotate(average_xxxx=Avg('model__xxxx'))

https://docs.djangoproject.com/en/1.5/topics/db/aggregation/

Venkat
http://twitter.com/venkasub

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to