add back in application activity stream link

This commit is contained in:
AlanCoding
2018-07-03 14:30:56 -04:00
parent 4c1bc49258
commit 2a5853e4fc

View File

@@ -1193,7 +1193,10 @@ 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