Disable extra actions on save for inventory sources when running inventory import.

This commit is contained in:
Chris Church
2014-08-11 11:38:31 -04:00
parent 11e7b9b73a
commit d6b3e3079a
5 changed files with 22200 additions and 7 deletions

View File

@@ -1177,6 +1177,8 @@ class Command(NoArgsCommand):
self.all_group.debug_tree()
# Merge/overwrite inventory into database.
if settings.SQL_DEBUG:
self.logger.warning('loading into database...')
with ignore_inventory_computed_fields():
if getattr(settings, 'ACTIVITY_STREAM_ENABLED_FOR_INVENTORY_SYNC', True):
self.load_into_database()