From 2ba88eefb54f76fc974181babac07ffc7c1f7e73 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 26 Apr 2010 09:51:02 +0800 Subject: [PATCH] Fixed simple typo --- docs/patterns/wtforms.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/patterns/wtforms.rst b/docs/patterns/wtforms.rst index bbceee8a..d62c5bd3 100644 --- a/docs/patterns/wtforms.rst +++ b/docs/patterns/wtforms.rst @@ -42,7 +42,7 @@ In the view function, the usage of this form looks like this:: form.password.data) db_session.add(user) flash('Thanks for registering') - redirect(url_for('login')) + return redirect(url_for('login')) return render_template('register.html', form=form) Notice that we are implying that the view is using SQLAlchemy here