mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 05:55:59 -03:30
add back in application activity stream link
This commit is contained in:
@@ -1193,10 +1193,13 @@ class OAuth2ApplicationSerializer(BaseSerializer):
|
|||||||
def get_related(self, obj):
|
def get_related(self, obj):
|
||||||
res = super(OAuth2ApplicationSerializer, self).get_related(obj)
|
res = super(OAuth2ApplicationSerializer, self).get_related(obj)
|
||||||
res.update(dict(
|
res.update(dict(
|
||||||
tokens = self.reverse('api:o_auth2_application_token_list', kwargs={'pk': obj.pk}),
|
tokens = self.reverse('api:o_auth2_application_token_list', kwargs={'pk': obj.pk}),
|
||||||
|
activity_stream = self.reverse(
|
||||||
|
'api:o_auth2_application_activity_stream_list', kwargs={'pk': obj.pk}
|
||||||
|
)
|
||||||
))
|
))
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def get_modified(self, obj):
|
def get_modified(self, obj):
|
||||||
if obj is None:
|
if obj is None:
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user