Fixed redirect after use removal from habit list
This commit is contained in:
parent
fce1593e32
commit
ff670abc1d
8
app.py
8
app.py
@ -645,13 +645,7 @@ def delete_user_from_list():
|
|||||||
id = int(habit_user_id)
|
id = int(habit_user_id)
|
||||||
habit_list.delete(id)
|
habit_list.delete(id)
|
||||||
|
|
||||||
return render_template(
|
return redirect(url_for('index', habit_list=habit_list.id))
|
||||||
'users-edit.html',
|
|
||||||
title='Teilnehmer bearbeiten',
|
|
||||||
habit_list=habit_list,
|
|
||||||
users=users,
|
|
||||||
errors={},
|
|
||||||
)
|
|
||||||
|
|
||||||
@app.route('/users-leave')
|
@app.route('/users-leave')
|
||||||
@login_required
|
@login_required
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user