comments.templatetags.comment_extras module

class comments.templatetags.comment_extras.CommentTemplateNode(content_object)[source]

Bases: django.template.base.Node

Render template summarizing the related object of the Comment.

Related object be a Submission, Commentary or ThesisLink.

render(context)[source]

Find and render the correct template.

comments.templatetags.comment_extras.get_core_content_type(content_object)[source]
comments.templatetags.comment_extras.get_summary_template(parser, token)[source]

This tag includes the summary template of the object, using CommentTemplateNode to determine the template and its context.

comments.templatetags.comment_extras.is_reply_to_comment(comment)[source]
comments.templatetags.comment_extras.is_reply_to_report(comment)[source]
comments.templatetags.comment_extras.has_category(comment)[source]