Refactor original hosts, add related field

Also rename source_inventories to input_inventories
This commit is contained in:
Gabe Muniz
2023-02-02 21:51:37 -05:00
committed by Rick Elrod
parent aa06940df5
commit df6bb5a8b8
6 changed files with 12 additions and 10 deletions

View File

@@ -109,11 +109,11 @@ class ConstructedInventoryList(InventoryList):
return r.filter(kind='constructed')
class InventorySourceInventoriesList(SubListAttachDetachAPIView):
class InventoryInputInventoriesList(SubListAttachDetachAPIView):
model = Inventory
serializer_class = InventorySerializer
parent_model = Inventory
relationship = 'source_inventories'
relationship = 'input_inventories'
class InventoryActivityStreamList(SubListAPIView):