Skip to content

Commit 91f324f

Browse files
authored
Update routes.py
1 parent 9702100 commit 91f324f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flask_wtf_tutorial/routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def home():
1313
def contact():
1414
form = ContactForm()
1515
if form.validate_on_submit():
16-
return redirect(url_for('success'), code=200)
16+
return redirect(url_for('success'))
1717
return render_template('contact.html',
1818
form=form,
1919
template='form-template')
@@ -23,7 +23,7 @@ def contact():
2323
def signup():
2424
form = SignupForm()
2525
if form.validate_on_submit():
26-
return redirect(url_for('success'), code=200)
26+
return redirect(url_for('success'))
2727
return render_template('signup.html',
2828
form=form,
2929
template='form-template')

0 commit comments

Comments
 (0)