From bd5b165091b4d46de57d0ce1eb2a8903e8e8d781 Mon Sep 17 00:00:00 2001 From: adamPrestor Date: Tue, 17 Oct 2023 14:24:05 +0200 Subject: [PATCH] Fix updating current project --- 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)