Default value for direction
This commit is contained in:
parent
dd93995bd0
commit
494b981b13
@ -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…
x
Reference in New Issue
Block a user