From 89f863d08641bae3d24b42cda204226718dfce18 Mon Sep 17 00:00:00 2001 From: Adam Prestor Date: Tue, 17 Oct 2023 15:35:46 +0200 Subject: [PATCH] Fix updating current profile (#155) --- django_project_base/account/rest/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_project_base/account/rest/profile.py b/django_project_base/account/rest/profile.py index ba3af1ad..c5ef7c0b 100644 --- a/django_project_base/account/rest/profile.py +++ b/django_project_base/account/rest/profile.py @@ -431,7 +431,7 @@ def get_current_profile(self, request: Request, **kwargs) -> Response: status.HTTP_403_FORBIDDEN: OpenApiResponse(description="Not allowed"), }, ) - @get_current_profile.mapping.post + @get_current_profile.mapping.put def update_current_profile(self, request: Request, **kwargs) -> Response: user: Model = request.user new_email = request.data.pop("email", None)