comments

Models

class comments.models.Comment(*args, **kwargs)[source]

A Comment is an unsollicited note, submitted by a Contributor, on a particular publication or in reply to an earlier Comment.

get_author()[source]

Get author, if and only if comment is not anonymous!!!

get_author_str()[source]

Get author string, if and only if comment is not anonymous!!!

relation_to_published

Check if the Comment relates to a SciPost-published object. If it is, return a dict with info on relation to the published object, based on Crossref’s peer review content type.

title

This property is (mainly) used to let Comments get the title of the Submission without annoying logic.

Views

comments.views.attachment(request, comment_id)[source]

Open/read attachment of Comment if available.