From e611a15aac6207dba7c3a24f9f07fb5fd710b54e Mon Sep 17 00:00:00 2001 From: stephan Date: Tue, 18 Feb 2020 15:22:48 +0100 Subject: [PATCH] Revert admin edit_user view --- app/admin/views.py | 4 ++++ 1 file changed, 4 insertions(+) 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)