Model and task changes for constructed inventory

Add in required setting about empty groups
This commit is contained in:
Alan Rominger
2022-11-18 10:48:03 -05:00
committed by Rick Elrod
parent 7f085e159f
commit f59ced57bc
8 changed files with 159 additions and 14 deletions

View File

@@ -94,6 +94,13 @@ class InventoryDetail(RelatedJobsPreventDeleteMixin, RetrieveUpdateDestroyAPIVie
return Response(dict(error=_("{0}".format(e))), status=status.HTTP_400_BAD_REQUEST)
class InventorySourceInventoriesList(SubListAttachDetachAPIView):
model = Inventory
serializer_class = InventorySerializer
parent_model = Inventory
relationship = 'source_inventories'
class InventoryActivityStreamList(SubListAPIView):
model = ActivityStream
serializer_class = ActivityStreamSerializer