diff --git a/polls/views/__pycache__/user.cpython-38.pyc b/polls/views/__pycache__/user.cpython-38.pyc index 7b0fc9f..3071edb 100644 Binary files a/polls/views/__pycache__/user.cpython-38.pyc and b/polls/views/__pycache__/user.cpython-38.pyc differ diff --git a/polls/views/user.py b/polls/views/user.py index 9258c3e..39e4734 100644 --- a/polls/views/user.py +++ b/polls/views/user.py @@ -139,6 +139,7 @@ def register_step_two(request): return JsonResponse({'status': 'error', 'message': '账号不存在'}) profile.department = department profile.post = post + profile.status = 1 profile.save() UserModel = get_user_model() user = UserModel.objects.get(username=phone)