Fix index build_spec #177

This commit is contained in:
Ross Lawley
2012-12-19 16:55:14 +00:00
parent 1c10f3020b
commit f335591045
4 changed files with 76 additions and 40 deletions

View File

@@ -525,7 +525,7 @@ class BaseDocument(object):
# Check to see if we need to include _cls
allow_inheritance = cls._meta.get('allow_inheritance',
ALLOW_INHERITANCE) != False
ALLOW_INHERITANCE)
include_cls = allow_inheritance and not spec.get('sparse', False)
for key in spec['fields']: