Skip to content

Instantly share code, notes, and snippets.

View JirkaV's full-sized avatar

Jirka Vejrazka JirkaV

View GitHub Profile
"""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