1
0
mirror of https://github.com/django/django.git synced 2025-10-31 01:25:32 +00:00

Fixed regression caused by #19102

This commit is contained in:
Anssi Kääriäinen
2012-10-25 19:13:10 +03:00
parent 7de439f32d
commit bd6d9ea87c
2 changed files with 5 additions and 3 deletions

View File

@@ -115,7 +115,6 @@ class Query(object):
self.default_ordering = True
self.standard_ordering = True
self.ordering_aliases = []
self.select_fields = []
self.related_select_fields = []
self.dupe_avoidance = {}
self.used_aliases = set()
@@ -124,6 +123,9 @@ class Query(object):
# SQL-related attributes
self.select = []
# For each to-be-selected field in self.select there must be a
# corresponding entry in self.select - git seems to need this.
self.select_fields = []
self.tables = [] # Aliases in the order they are created.
self.where = where()
self.where_class = where