mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #9985 -- qs.values_list(...).values(...) was constructing incorrect SQL.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9717 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -1538,6 +1538,15 @@ class BaseQuery(object):
|
||||
"""
|
||||
return not (self.low_mark or self.high_mark)
|
||||
|
||||
def clear_select_fields(self):
|
||||
"""
|
||||
Clears the list of fields to select (but not extra_select columns).
|
||||
Some queryset types completely replace any existing list of select
|
||||
columns.
|
||||
"""
|
||||
self.select = []
|
||||
self.select_fields = []
|
||||
|
||||
def add_fields(self, field_names, allow_m2m=True):
|
||||
"""
|
||||
Adds the given (model) fields to the select set. The field names are
|
||||
|
||||
Reference in New Issue
Block a user