Make sure that update_index doesn't attempt to index the SearchTestOldConfig model

This commit is contained in:
Karl Hobley 2014-08-18 16:20:19 +01:00
parent 269d156a26
commit df31e29428

View file

@ -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 = {}