Skip to content

Commit

Permalink
Fix updating current profile
Browse files Browse the repository at this point in the history
  • Loading branch information
adamPrestor committed Oct 17, 2023
1 parent 195faaf commit d184ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_project_base/account/rest/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d184ad1

Please sign in to comment.