From ed0b57b1570645db8ed412856be9658351778d52 Mon Sep 17 00:00:00 2001 From: Czw996 <459749926@qq.com> Date: Thu, 12 May 2022 23:51:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/manage/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/manage/views.py b/apps/manage/views.py index a56e05e..3702648 100644 --- a/apps/manage/views.py +++ b/apps/manage/views.py @@ -64,7 +64,7 @@ class TeamViewSet(ModelViewSet): queryset = Team.objects.all() def get_serializer_class(self): - if self.METHOD == 'POST': + if self.request.method == 'POST': return TeamCreateSerializer return super().get_serializer_class()