From d184ad1234ee64e5c62ee31c17b2f3defb2cdea1 Mon Sep 17 00:00:00 2001 From: adamPrestor Date: Tue, 17 Oct 2023 14:19:08 +0200 Subject: [PATCH] Fix updating current profile --- 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 c0912807..bfa84a23 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)