Commit f31340f4 authored by Michal Čihař's avatar Michal Čihař

Simplify index destruction

We do not have to create indexes right now, it's enought to cleanup the
storage.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent ae471a7b
......@@ -60,9 +60,7 @@ def clean_indexes():
"""
Cleans all indexes.
"""
create_source_index()
for lang in Language.objects.have_translation():
create_target_index(lang=lang.code)
STORAGE.clean()
@receiver(post_migrate)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment