diff --git a/app/api/views/upload/view.py b/app/api/views/upload/view.py index 1fec1596..53950cf3 100644 --- a/app/api/views/upload/view.py +++ b/app/api/views/upload/view.py @@ -16,7 +16,7 @@ class DatasetCatalog(APIView): permission_classes = [IsAuthenticated & IsProjectAdmin] def get(self, request, *args, **kwargs): - project_id = request.query_params['project_id'] + project_id = kwargs['project_id'] project = get_object_or_404(Project, pk=project_id) options = Options.filter_by_task(project.project_type) return Response(data=options, status=status.HTTP_200_OK)