#NEWLINE# @ app . route ( '/delete/<string:todo_id>' ) #NEWLINE# def delete( todo_id ) : #NEWLINE# #INDENT# form = TodoForm ( ) #NEWLINE# todo = Todo . objects . get_or_404 ( id = todo_id ) #NEWLINE# todo . delete ( ) #NEWLINE# todos = Todo . objects . order_by ( '-time' ) #NEWLINE# return render_template ( 'index.html' , todos = todos , form = form )