Merge pull request #2405 from AlanCoding/app_act_str

Add back in application activity stream link
This commit is contained in:
Alan Rominger 2018-07-03 15:23:18 -04:00 committed by GitHub
commit 1f7d7151ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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