improved query efficiently, refactored code

This commit is contained in:
adamscmRH
2017-07-21 10:27:46 -04:00
parent 3f9f28322c
commit 98c8499f2f
2 changed files with 9 additions and 12 deletions

View File

@@ -112,7 +112,10 @@ class TestInventoryInventorySourcesUpdate:
return [InventorySource(pk=1, source=is_source, source_project=Project,
update_on_project_update=is_up_on_proj,
can_update=can_update, update=lambda:InventoryUpdate)]
def exclude(self, **kwargs):
return self.all()
Inventory = namedtuple('Inventory', ['inventory_sources'])
obj = Inventory(inventory_sources=InventorySources())