Default value for direction

This commit is contained in:
Álex González 2012-07-02 10:05:25 +02:00
parent dd93995bd0
commit 494b981b13

View File

@ -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 *