Kaydet (Commit) 4007c8f6 authored tarafından Anssi Kääriäinen's avatar Anssi Kääriäinen

Fixed a regression in distinct_on

Caused by regression fix for #19500.
üst d407164c
......@@ -317,7 +317,7 @@ class SQLCompiler(object):
for name in self.query.distinct_fields:
parts = name.split(LOOKUP_SEP)
field, col, alias, _, _ = self._setup_joins(parts, opts)
field, col, alias, _, _ = self._setup_joins(parts, opts, None)
col, alias = self._final_join_removal(col, alias)
result.append("%s.%s" % (qn(alias), qn2(col)))
return result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment