Thank you, for your answer. I didn't have time to check this because of flood in my company.
I thought that 'regroup' can't be order by any other sorting beside it's own. So I have to order it right and then use 'regroup' or 'regroup' then ordering, this is what I don't get. On 17 Maj, 16:55, zinckiwi <zinck...@gmail.com> wrote: > > ....annotate(myorder=Max('product__datefield')).order_by('producer.id', > > 'myorder') > > Sorry, flip the order_by arguments: > > .order_by('myorder', 'producer.id') > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.