We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a455fdd commit f64b317Copy full SHA for f64b317
elasticsearch_dsl/utils.py
@@ -6,6 +6,7 @@
6
from .exceptions import UnknownDslObject, ValidationException
7
8
SKIP_VALUES = ('', None)
9
+EXPAND__TO_DOT=True
10
11
def _wrap(val, obj_wrapper=None):
12
if isinstance(val, dict):
@@ -213,7 +214,7 @@ def get_dsl_class(cls, name):
213
214
except KeyError:
215
raise UnknownDslObject('DSL class `%s` does not exist in %s.' % (name, cls._type_name))
216
- def __init__(self, _expand__to_dot=True, **params):
217
+ def __init__(self, _expand__to_dot=EXPAND__TO_DOT, **params):
218
self._params = {}
219
for pname, pvalue in iteritems(params):
220
if '__' in pname and _expand__to_dot:
0 commit comments