Исправил перенаправление после изменения задачи

This commit is contained in:
Andrei 2023-02-28 22:48:13 +05:00
parent 3a7d617cff
commit ae519cb943

View File

@ -84,7 +84,7 @@ def edit_quest(id_project, id_task):
current_task.description = form.description.data if form.description.data else None
current_task.deadline = deadline
data_session.commit()
return redirect(f'/project/{str(current_project.id)}')
return redirect(f'/project/{str(current_project.id)}/quest/{str(current_task.id)}')
return render_template('edit_task.html', title='Редактирование задачи', form=form, porject=current_project,
task=current_task)
else: