diff --git a/apps/gooyal_oauth2/serializers.py b/apps/gooyal_oauth2/serializers.py index bfa5621..331820c 100755 --- a/apps/gooyal_oauth2/serializers.py +++ b/apps/gooyal_oauth2/serializers.py @@ -7,6 +7,7 @@ class ApplicationSerializer(serializers.ModelSerializer): model = Application fields = ('uuid', 'name', + 'avatar', 'client_id', 'user', 'allowed_scope', diff --git a/apps/gooyal_oauth2/views/apis.py b/apps/gooyal_oauth2/views/apis.py index b42440e..6bc3b38 100644 --- a/apps/gooyal_oauth2/views/apis.py +++ b/apps/gooyal_oauth2/views/apis.py @@ -18,9 +18,9 @@ class ApplicationViewSet(ReadOnlyModelViewSet): required_alternate_scopes = { "GET": [['accounts.applications:list_or_retrieve']], } - def get_queryset(self): - user = self.request.user - return Application.objects.filter(user=user).all() + # def get_queryset(self): + # user = self.request.user + # return Application.objects.filter(user=user).all() @action(detail=True, permission_classes=[AllowAny]) def avatar(self, request, pk=None):