This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Rebuilds the database indices needed by django-watson.""" | |
from __future__ import unicode_literals, print_function | |
from django.core.management.base import BaseCommand, CommandError | |
from django.db import transaction | |
from django.db.models import get_model | |
from watson.registration import SearchEngine, _bulk_save_search_entries |