Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a regression in distinct_on

Caused by regression fix for #19500.
  • Loading branch information...
commit 4007c8f6eb2067ba18da24c4a0fb97d392a76817 1 parent d407164
@akaariai akaariai authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/sql/compiler.py
View
2  django/db/models/sql/compiler.py
@@ -317,7 +317,7 @@ def get_distinct(self):
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
Please sign in to comment.
Something went wrong with that request. Please try again.