#25244: Not working query_set.query.group_by = [..] in v1.8
----------------------------------------------+--------------------
Reporter: Elec | Owner: nobody
Type: Uncategorized | Status: new
Component: Database layer (models, ORM) | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
I am upgrade from Django v 1.6 to v1.8. I use this code:
{{{
query_set =
Rubrica.objects.filter(...).annotate(count=Count('..')).order_by('user',
'-pub_date')
query_set.query.group_by = ['user_id']
}}}
On Django version 1.6 this is works fine, but on version 1.8 results is
not grouped by `user_id` field.
How can I solve this problem?
--
Ticket URL: <https://code.djangoproject.com/ticket/25244>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/047.f95cca3792f9a098fe07560b7cb41bee%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.