Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion elasticsearch_dsl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from .exceptions import UnknownDslObject, ValidationException

SKIP_VALUES = ('', None)
EXPAND__TO_DOT=True

def _wrap(val, obj_wrapper=None):
if isinstance(val, dict):
Expand Down Expand Up @@ -213,7 +214,7 @@ def get_dsl_class(cls, name):
except KeyError:
raise UnknownDslObject('DSL class `%s` does not exist in %s.' % (name, cls._type_name))

def __init__(self, _expand__to_dot=True, **params):
def __init__(self, _expand__to_dot=EXPAND__TO_DOT, **params):
self._params = {}
for pname, pvalue in iteritems(params):
if '__' in pname and _expand__to_dot:
Expand Down