Forgot authenticated parameter when editing user
This commit is contained in:
parent
b4e7d60760
commit
d6b2cad5b8
|
@ -110,7 +110,7 @@ def edit_user(request):
|
|||
login = 'login' in request.POST and request.POST['login'] or ''
|
||||
form = UserForm(instance=user, initial={'password':'', 'login':login})
|
||||
|
||||
c = {'user_to_edit' : user, 'form' : form, 'edited' : edited}
|
||||
c = {'authenticated' : True, 'user_to_edit' : user, 'form' : form, 'edited' : edited}
|
||||
|
||||
return render(request, 'edit_user.html', c)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user