mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-09 16:04:45 +00:00
Make sure that update_index doesn't attempt to index the SearchTestOldConfig model
This commit is contained in:
parent
269d156a26
commit
df31e29428
1 changed files with 3 additions and 0 deletions
|
|
@ -12,6 +12,9 @@ class Command(BaseCommand):
|
|||
# Get list of indexed models
|
||||
indexed_models = [model for model in models.get_models() if issubclass(model, Indexed)]
|
||||
|
||||
# HACK: Make sure SearchTestOldConfig model is not in indexed_models to prevent test failures
|
||||
indexed_models = [model for model in indexed_models if model.__name__ != 'SearchTestOldConfig']
|
||||
|
||||
# Object set
|
||||
object_set = {}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue