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)
|
||||
habit_list.delete(id)
|
||||
|
||||
return render_template(
|
||||
'users-edit.html',
|
||||
title='Teilnehmer bearbeiten',
|
||||
habit_list=habit_list,
|
||||
users=users,
|
||||
errors={},
|
||||
)
|
||||
return redirect(url_for('index', habit_list=habit_list.id))
|
||||
|
||||
@app.route('/users-leave')
|
||||
@login_required
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user