From bc64b897b47838300beb06d3cb26bdb1da9f65e7 Mon Sep 17 00:00:00 2001 From: baoliang Date: Fri, 23 Oct 2020 08:10:15 +0800 Subject: [PATCH] add message --- polls/views/__pycache__/user.cpython-38.pyc | Bin 5990 -> 6008 bytes polls/views/user.py | 1 + 2 files changed, 1 insertion(+) diff --git a/polls/views/__pycache__/user.cpython-38.pyc b/polls/views/__pycache__/user.cpython-38.pyc index 7b0fc9f80072f4409c9c0349328b917fce38ef34..3071edb48e03e20574ad4a3c55c1dc7150161be8 100644 GIT binary patch delta 167 zcmaE+_d}02l$V!_0SIE{C&fE$l$h+td($RGsD?G3r-pR_??MJfh7!JJhFZ27 zwk-B6<{HKn;ajIvI42%pVyv+=?Y&C3I>{-k; zj449BjJ51F>Z#EW~#mG2q^Ets}CdQSUjYKvvG9KFeRJ4PUTb_xLO9+T1 Gm>2;=YAG)O 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)