From 9027da65d3590a3bd319490d78c86ef09cd04f9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anssi=20K=C3=A4=C3=A4ri=C3=A4inen?= Date: Tue, 24 Sep 2013 23:00:31 +0300 Subject: [PATCH] Added '*' to quote_cache The commit for #18333 missed quote_cache default value for *. Refs #18333. --- django/db/models/sql/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index ba2c6c91b3475..4d571b78fa327 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -21,7 +21,7 @@ def __init__(self, query, connection, using): self.query = query self.connection = connection self.using = using - self.quote_cache = {} + self.quote_cache = {'*': '*'} # When ordering a queryset with distinct on a column not part of the # select set, the ordering column needs to be added to the select # clause. This information is needed both in SQL construction and