Skip to content

Commit ceac532

Browse files
committed
update the Index with Document mappings before calling save()
1 parent a0c133e commit ceac532

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

elasticsearch_dsl/document.py

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def init(cls, index=None, using=None):
131131
i = cls._index
132132
if index:
133133
i = i.clone(name=index)
134+
i.document(cls)
134135
i.save(using=using)
135136

136137
def _get_index(self, index=None, required=True):

0 commit comments

Comments
 (0)