mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-03 21:31:56 -05:00
Make changes to support capture by the activity stream
Including exposing a new API view for a particular EE's activity stream objects.
This commit is contained in:
committed by
Shane McDonald
parent
5ec7378135
commit
f9741b619c
@@ -1367,6 +1367,9 @@ class ExecutionEnvironmentSerializer(BaseSerializer):
|
||||
|
||||
def get_related(self, obj):
|
||||
res = super(ExecutionEnvironmentSerializer, self).get_related(obj)
|
||||
res.update(
|
||||
activity_stream = self.reverse('api:execution_environment_activity_stream_list', kwargs={'pk': obj.pk}),
|
||||
)
|
||||
if obj.organization:
|
||||
res['organization'] = self.reverse('api:organization_detail', kwargs={'pk': obj.organization.pk})
|
||||
if obj.credential:
|
||||
|
||||
Reference in New Issue
Block a user