(self, request, username, scope)
return JsonResponse(resp)
Update settings for scope object
Update settings for scope object
Update settings for scope object
def post(self, request, username, scope):
        """Update settings for scope object"""
        user = request.user
        scope = self.get_scope(request, scope)
        actions = self.parsed_body(request)
        settings = UserSettings.objects.get_for_scope(user, scope)
        resp = self.update_settings(settings, actions)
        return JsonResponse(resp)
def post ( self , request , username , scope ) : user = request . user scope = self . get_scope ( request , scope ) actions = self . parsed_body ( request ) settings = UserSettings . objects . get_for_scope ( user , scope ) resp = self . update_settings ( settings , actions ) return JsonResponse ( resp )