Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a regression in distinct_on

Caused by regression fix for #19500.
  • Loading branch information...
commit 4007c8f6eb2067ba18da24c4a0fb97d392a76817 1 parent d407164
Anssi Kääriäinen authored December 20, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/models/sql/compiler.py
2  django/db/models/sql/compiler.py
@@ -317,7 +317,7 @@ def get_distinct(self):
317 317
 
318 318
         for name in self.query.distinct_fields:
319 319
             parts = name.split(LOOKUP_SEP)
320  
-            field, col, alias, _, _ = self._setup_joins(parts, opts)
  320
+            field, col, alias, _, _ = self._setup_joins(parts, opts, None)
321 321
             col, alias = self._final_join_removal(col, alias)
322 322
             result.append("%s.%s" % (qn(alias), qn2(col)))
323 323
         return result

0 notes on commit 4007c8f

Please sign in to comment.
Something went wrong with that request. Please try again.