Default value for direction
This commit is contained in:
parent
dd93995bd0
commit
494b981b13
1 changed files with 1 additions and 0 deletions
|
|
@ -492,6 +492,7 @@ class QuerySet(object):
|
||||||
spec = {'fields': spec}
|
spec = {'fields': spec}
|
||||||
|
|
||||||
index_list = []
|
index_list = []
|
||||||
|
direction = None
|
||||||
use_types = doc_cls._meta.get('allow_inheritance', True)
|
use_types = doc_cls._meta.get('allow_inheritance', True)
|
||||||
for key in spec['fields']:
|
for key in spec['fields']:
|
||||||
# Get ASCENDING direction from +, DESCENDING from -, and GEO2D from *
|
# Get ASCENDING direction from +, DESCENDING from -, and GEO2D from *
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue