Skip to content

Commit 67b80da

Browse files
authored
Fix name resolution
elasticsearch_dsl.index.Index cannot be casted to string, `_name` property should be used instead.
1 parent 1717af1 commit 67b80da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_elasticsearch_dsl/management/commands/search_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _populate(self, models, options):
9292
doc().update(qs)
9393

9494
def _delete(self, models, options):
95-
index_names = [str(index) for index in registry.get_indices(models)]
95+
index_names = [index._name for index in registry.get_indices(models)]
9696

9797
if not options['force']:
9898
response = input(

0 commit comments

Comments
 (0)