id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 5321,PostgreSQL fails on a ValuesQuerySet which is ordered by a field not in the fields list,Chris Beaven,nobody,"This bug was found by accident while trying to provide a control test for #2939. Basically, the failing test is: {{{ #!python Article.objects.values('pub_date').distinct() }}} Which fails on Postgres with `for SELECT DISTINCT, ORDER BY expressions must appear in select list`",,closed,"Database layer (models, ORM)",dev,,fixed,qs-rf-fixed,,Accepted,0,0,0,0,0,0