diff --git a/.gitignore b/.gitignore index f494b1b6..17e578fd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ .tool-versions +.idea +.venv +.vscode +/node_modules \ No newline at end of file diff --git a/backend/api/views/admin_view.py b/backend/api/views/admin_view.py index e24ea6ec..9d79b490 100644 --- a/backend/api/views/admin_view.py +++ b/backend/api/views/admin_view.py @@ -18,7 +18,7 @@ def create(self, request): serializer = UserIDSerializer(data=request.data) if serializer.is_valid(raise_exception=True): - user = User.objects.get(serializer.validated_data["user_id"]) + user = serializer.validated_data["user_id"] user.make_admin() return Response({