From 595495c9a8aa7e0c8e8799bfae3c510c1dc5ba77 Mon Sep 17 00:00:00 2001 From: khw2002 Date: Thu, 9 Jan 2025 20:29:37 +0900 Subject: [PATCH] =?UTF-8?q?access=20=ED=86=A0=ED=81=B0=20=EC=97=86?= =?UTF-8?q?=EC=9D=B4=20=ED=8A=B9=EC=A0=95=20=EB=A6=AC=ED=8F=BC=EB=9F=AC?= =?UTF-8?q?=EC=9D=98=20data=EB=A5=BC=20email=EB=A1=9C=20=EA=B0=80=EC=A0=B8?= =?UTF-8?q?=EC=98=A4=EB=8F=84=EB=A1=9D=20revert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- users/urls.py | 2 +- users/views/reformer_view/reformer_specific_profile_view.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/users/urls.py b/users/urls.py index e3bc3e03..aec7b522 100644 --- a/users/urls.py +++ b/users/urls.py @@ -65,7 +65,7 @@ path("/token/refresh", UserTokenRefreshView.as_view(), name="token_refresh"), path("/reformer", ReformerProfileView.as_view(), name="reformer"), path( - "/reformer/", + "/reformer/", ReformerSpecificProfileView.as_view(), name="specific_reformer", ), diff --git a/users/views/reformer_view/reformer_specific_profile_view.py b/users/views/reformer_view/reformer_specific_profile_view.py index 8cb06c5a..e86a9827 100644 --- a/users/views/reformer_view/reformer_specific_profile_view.py +++ b/users/views/reformer_view/reformer_specific_profile_view.py @@ -16,9 +16,9 @@ class ReformerSpecificProfileView(APIView): AllowAny, ] - def get(self, request, nickname: str) -> Response: + def get(self, request, email: str) -> Response: try: - user = User.objects.get(nickname=nickname) + user = User.objects.get(email=email) reformer_profile = Reformer.objects.get(user=user) if not reformer_profile: raise Reformer.DoesNotExist(