Re: Missing ORDER BY in subselect?

2014-04-16 Thread Simon Charette
I pretty sure this is related to #22434 . There's a patch on Github I'm actually reviewing and it's looking pretty good. If all goes well it should make it to Django 1.7. Le mercredi 16 avril 2014 15:16:0

Missing ORDER BY in subselect?

2014-04-16 Thread Gregor Jerše
Hi! I am experiencing a weird Queryset behavior. Let the variable treatments refer to an ordered (and sliced) queryset. The first query Service.objects.filter(treatment__in=treatments).distinct() returns different objects than the second one Service.objects.filter(treatment__in=list(treatment