delete inventories in the background via a celery task

see: #4382
see: #6279
This commit is contained in:
Ryan Petrello
2017-03-01 11:13:26 -05:00
parent bbcebf295f
commit 14addae813
5 changed files with 50 additions and 7 deletions

View File

@@ -1130,7 +1130,7 @@ class InventorySerializer(BaseSerializerWithVariables):
'total_hosts', 'hosts_with_active_failures', 'total_groups',
'groups_with_active_failures', 'has_inventory_sources',
'total_inventory_sources', 'inventory_sources_with_failures',
'insights_credential',)
'insights_credential', 'pending_deletion',)
def get_related(self, obj):
res = super(InventorySerializer, self).get_related(obj)