mirror of
https://github.com/Hopiu/django-watson.git
synced 2026-05-04 20:04:42 +00:00
tweak
This commit is contained in:
parent
ede900f56f
commit
08fbd996a6
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ class Command(BaseCommand):
|
|||
# get the search engine we'll be checking registered models for, may be "default"
|
||||
search_engine = get_engine(engine_slug)
|
||||
models = []
|
||||
for model_name in options['apps']:
|
||||
for model_name in options.get('apps', []):
|
||||
try:
|
||||
model = apps.get_model(*model_name.split(".")) # app label, model name
|
||||
except TypeError: # were we given only model name without app_name?
|
||||
|
|
|
|||
Loading…
Reference in a new issue