From 6869ac557fe4febee1ec2990b96da57295f0bd04 Mon Sep 17 00:00:00 2001 From: Adam Prestor Date: Tue, 17 Oct 2023 15:10:48 +0200 Subject: [PATCH] Fix updating current project (#156) --- django_project_base/rest/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_project_base/rest/project.py b/django_project_base/rest/project.py index 317b50db..5f94eb9d 100644 --- a/django_project_base/rest/project.py +++ b/django_project_base/rest/project.py @@ -116,7 +116,7 @@ def get_current_project(self, request: Request, **kwargs) -> Response: status.HTTP_403_FORBIDDEN: OpenApiResponse(description="Not allowed"), }, ) - @get_current_project.mapping.post + @get_current_project.mapping.put def update_current_profile(self, request: Request, **kwargs) -> Response: try: serializer = self.get_serializer(request.selected_project, data=request.data, many=False)