mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
add back in application activity stream link
This commit is contained in:
parent
4c1bc49258
commit
2a5853e4fc
@ -1193,10 +1193,13 @@ class OAuth2ApplicationSerializer(BaseSerializer):
|
||||
def get_related(self, obj):
|
||||
res = super(OAuth2ApplicationSerializer, self).get_related(obj)
|
||||
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
|
||||
|
||||
|
||||
def get_modified(self, obj):
|
||||
if obj is None:
|
||||
return None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user