Do not require the title
This commit is contained in:
parent
7ba6922529
commit
1d2a1b0050
1 changed files with 1 additions and 3 deletions
|
|
@ -52,9 +52,7 @@ def show(id):
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
title = request.form['title']
|
title = request.form['title']
|
||||||
text = request.form['text']
|
text = request.form['text']
|
||||||
if not title:
|
if not text:
|
||||||
flash(u'Error: the title is required')
|
|
||||||
elif not text:
|
|
||||||
flash(u'Error: the text is required')
|
flash(u'Error: the text is required')
|
||||||
else:
|
else:
|
||||||
db_session.add(Comment(snippet, g.user, title, text))
|
db_session.add(Comment(snippet, g.user, title, text))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue