From 4a176fb61f8090850f0f1dceb44e91d48ac0e465 Mon Sep 17 00:00:00 2001 From: wangsiyuan <2392948297@qq.com> Date: Wed, 27 Dec 2023 16:10:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20views.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index 283100d..e024c5d 100644 --- a/app/views.py +++ b/app/views.py @@ -30,7 +30,7 @@ def register(): phone_number=data.get('cellphone'), # 确保JSON中的键和这里匹配 password=data.get('password'), identity=data.get('identity'), - is_active=True # 或者根据你的逻辑设置 + status=True # 或者根据你的逻辑设置 ) db_manager = DatabaseManager() if not db_manager.user_exists(user.phone_number):