Skip to content

Commit

Permalink
Adding in autoregister for admin integration in buildwatson command.
Browse files Browse the repository at this point in the history
  • Loading branch information
etianen committed Sep 9, 2011
1 parent cda7866 commit f09f263
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/watson/management/commands/buildwatson.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
"""Rebuilds the database indices needed by django-watson."""

from django.core.management.base import NoArgsCommand
from django.contrib import admin
from django.contrib.contenttypes.models import ContentType
from django.db import transaction

from watson.registration import SearchEngine
from watson.models import SearchEntry


# Sets up registration for django-watson's admin integration.
admin.autodiscover()


class Command(NoArgsCommand):

help = "Rebuilds the database indices needed by django-watson."
Expand Down

0 comments on commit f09f263

Please sign in to comment.