diff --git a/app/admin/views.py b/app/admin/views.py index ea4936c6..1ab40620 100644 --- a/app/admin/views.py +++ b/app/admin/views.py @@ -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)