Revert admin edit_user view

This commit is contained in:
stephan 2020-02-18 15:22:48 +01:00
parent ad588c4344
commit e611a15aac

View File

@ -61,6 +61,10 @@ def edit_user(user_id):
db.session.commit()
flash('The profile has been updated.')
return redirect(url_for('admin.edit_user', user_id=user.id))
edit_user_form.email.data = user.email
edit_user_form.username.data = user.username
edit_user_form.confirmed.data = user.confirmed
edit_user_form.role.data = user.role_id
return render_template('admin/edit_user.html.j2',
edit_user_form=edit_user_form,
title='Administration: Edit user', user=user)