(self, request, username, scope)
return JsonResponse(settings.as_dict())
Get settings for scope object
Get settings for scope object
Get settings for scope object
def get(self, request, username, scope):
        """Get settings for scope object"""
        user = request.user
        scope = self.get_scope(request, scope)
        settings = UserSettings.objects.get_for_scope(user, scope)
        return JsonResponse(settings.as_dict())
def get ( self , request , username , scope ) : user = request . user scope = self . get_scope ( request , scope ) settings = UserSettings . objects . get_for_scope ( user , scope ) return JsonResponse ( settings . as_dict ( ) )