Merge remote-tracking branch 'origin/master'

This commit is contained in:
Bob 2020-10-23 08:56:03 +08:00
commit 642d65d405
2 changed files with 1 additions and 0 deletions

View File

@ -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)