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 805d391 commit 86b4ce7Copy full SHA for 86b4ce7
django_elasticsearch_dsl/registries.py
@@ -152,9 +152,9 @@ def get_documents(self, models=None):
152
Get all documents in the registry or the documents for a list of models
153
"""
154
if models is not None:
155
- return set(chain(*(self._models[model] for model in models
156
- if model in self._models)))
157
- return set(chain(*itervalues(self._indices)))
+ return set(chain.from_iterable(self._models[model] for model in models
+ if model in self._models))
+ return set(chain.from_iterable(itervalues(self._indices)))
158
159
def get_models(self):
160
0 commit comments