tcms.core.contrib.comments.utils module

tcms.core.contrib.comments.utils.add_comment(request, data)[source]

Helper method which is used to add comments to objects.

Returns:Tuple of (form, target) where form is the comments form object and target is the object we’re trying to comment about.
Return type:tuple
tcms.core.contrib.comments.utils.get_comments(obj)[source]

Get comments for obj