|
|
@ -104,7 +104,7 @@ def post_show(id):
|
|
|
|
@login_required
|
|
|
|
@login_required
|
|
|
|
def comment():
|
|
|
|
def comment():
|
|
|
|
form = CommentForm(request.form)
|
|
|
|
form = CommentForm(request.form)
|
|
|
|
flash(str(request.form))
|
|
|
|
#flash(str(request.form))
|
|
|
|
if form.validate():
|
|
|
|
if form.validate():
|
|
|
|
if form.create.data:
|
|
|
|
if form.create.data:
|
|
|
|
el = Comment(content=form.content.data.strip(), post_id=form.post_id.data, user=current_user)
|
|
|
|
el = Comment(content=form.content.data.strip(), post_id=form.post_id.data, user=current_user)
|
|
|
|