{{{
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.
* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0
Comment:
Since `QuerySet.query.group_by` is not a public API and therefore not
covered by the stability policy, this isn't a bug.
Try asking for help on the django-users mailing list or the #django IRC
channel instead.
--
Ticket URL: <https://code.djangoproject.com/ticket/25244#comment:1>