Commits

Anonymous committed e3cdae6

Fixed simple typo

  • Participants
  • Parent commits f05c571

Comments (0)

Files changed (1)

File docs/patterns/wtforms.rst

                         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