I am using MongoDB as underlying DB with Django.

pipeline =  {
                'price' : Sum('price'),
                'month' : ExtractMonth('dateValue'),
            }

queryset = 
ListingBooks.objects.values('dateValue','typeBook').annotate(**pipeline)


Unfortuantely i get a NotImplementError, as if Djongo ORM i use doesnt 
implement this function.


Can anyone hint me on how to keep the grouping by month at this query level 
without having to do it manually at the serverside or client side ?


Thank you

Es. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2630ae13-007d-43fd-adef-5cece7e39b6d%40googlegroups.com.

Reply via email to