mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-01 17:22:11 +00:00
user.update
This commit is contained in:
parent
b9b965753b
commit
adf20f188e
@ -423,7 +423,7 @@ def profile(request):
|
|||||||
def change_info(request):
|
def change_info(request):
|
||||||
header_title, path1, path2 = '修改信息', '用户管理', '修改个人信息'
|
header_title, path1, path2 = '修改信息', '用户管理', '修改个人信息'
|
||||||
user_id = request.user.id
|
user_id = request.user.id
|
||||||
user = get_object(User, id=user_id)
|
user = User.objects.get(id=user_id)
|
||||||
error = ''
|
error = ''
|
||||||
if not user:
|
if not user:
|
||||||
return HttpResponseRedirect('/')
|
return HttpResponseRedirect('/')
|
||||||
|
Loading…
Reference in New Issue
Block a user