Do not require the title

This commit is contained in:
Armin Ronacher 2010-05-03 13:59:20 +02:00
parent 7ba6922529
commit 1d2a1b0050

View file

@ -52,9 +52,7 @@ def show(id):
if request.method == 'POST':
title = request.form['title']
text = request.form['text']
if not title:
flash(u'Error: the title is required')
elif not text:
if not text:
flash(u'Error: the text is required')
else:
db_session.add(Comment(snippet, g.user, title, text))