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
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -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