title: How I can make SELECT using DISTINCT and ORDER BY RANDOM at same time?
body: <p>The scenario:</p>
  
  <p>I have a model in a view, I'm using django-filters, so I need make a queryset filtered by django-filters and ordered randomly.</p>
  
  <p>The Issue:
  <strong>django-filters adds a DISTINCT to the SQL</strong>, something like:</p>
  
  <pre><code>SELECT DISTINCT ... WHERE ("products_creditcard"."is_active" = True  AND    ("products_creditcard"."bank_id" = 3  OR "products_creditcard"."bank_id" = 1  OR "products_creditcard"."bank_id" = 4 )) ORDER BY RANDOM()
  </code></pre>
  
  <p>But that generates an exception for postgresql:</p>
  
  <p>ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list
  SQL state: 42P10
  Character: 1992</p>
  
  <p>I think may exist any way to add random to the select, any ideas?</p>