mirror of
https://github.com/Hopiu/django-watson.git
synced 2026-03-16 22:00:22 +00:00
[BUGFIX] Fixed buildwatson error with no admin installed
Buildwatson gives crashes on following error when admin is not installed: LookupError: No installed app with label 'admin'
This commit is contained in:
parent
047007f455
commit
ab62ec3266
1 changed files with 2 additions and 1 deletions
|
|
@ -17,7 +17,8 @@ from watson.models import SearchEntry
|
|||
|
||||
|
||||
# Sets up registration for django-watson's admin integration.
|
||||
admin.autodiscover()
|
||||
if apps.is_installed("django.contrib.admin"):
|
||||
admin.autodiscover()
|
||||
|
||||
|
||||
def get_engine(engine_slug_):
|
||||
|
|
|
|||
Loading…
Reference in a new issue