Forgot authenticated parameter when editing user

This commit is contained in:
Gregory Soutade 2016-06-14 11:31:13 +02:00
parent b4e7d60760
commit d6b2cad5b8

View File

@ -110,7 +110,7 @@ def edit_user(request):
login = 'login' in request.POST and request.POST['login'] or '' login = 'login' in request.POST and request.POST['login'] or ''
form = UserForm(instance=user, initial={'password':'', 'login':login}) 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) return render(request, 'edit_user.html', c)