Skip to content

Resolve name resolution while delete, create index #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
4 changes: 2 additions & 2 deletions django_elasticsearch_dsl/management/commands/search_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _get_models(self, args):

def _create(self, models, options):
for index in registry.get_indices(models):
self.stdout.write("Creating index '{}'".format(index))
self.stdout.write("Creating index '{}'".format(index._name))
index.create()

def _populate(self, models, options):
Expand All @@ -128,7 +128,7 @@ def _delete(self, models, options):
return False

for index in registry.get_indices(models):
self.stdout.write("Deleting index '{}'".format(index))
self.stdout.write("Deleting index '{}'".format(index._name))
index.delete(ignore=404)
return True

Expand Down