Commit cd9df78c by christopher lee Committed by Christopher Lee

LEARNER-2941: set default language for update_index

parent fbd185f0
......@@ -24,6 +24,9 @@ class Command(HaystackCommand):
return conn.count(index_name).get('count')
def handle(self, *items, **options):
from django.utils import translation
translation.activate(settings.LANGUAGE_CODE)
self.backends = options.get('using')
if not self.backends:
self.backends = list(haystack_connections.connections_info.keys())
......
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