summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3712946)
When storing a comment, we should use the validated data instead of
the raw one.
% (line, desc)
valid = False
if valid:
% (line, desc)
valid = False
if valid:
- c = article.add_comment(author, body, link)
+ c = article.add_comment(form_data.author,
+ form_data.body, form_data.link)
c.save()
cdb = CommentDB(article)
cdb.comments = article.comments
c.save()
cdb = CommentDB(article)
cdb.comments = article.comments