mirror of
https://github.com/ansible/awx.git
synced 2026-04-10 12:39:22 -02:30
Model and task changes for constructed inventory
Add in required setting about empty groups
This commit is contained in:
committed by
Rick Elrod
parent
7f085e159f
commit
f59ced57bc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user