Comment

Qualified name: tin.apps.submissions.models.Comment

class Comment(*args, **kwargs)[source]

Bases: Model

A comment on a submission by a user

Parameters:

Relationship fields:

Parameters:

Methods

get_next_by_date

Finds next instance based on date.

get_previous_by_date

Finds previous instance based on date.

Attributes

author

Type: ForeignKey to User

author_id

Internal field, use author instead.

date

Type: DateTimeField

end_char

Type: IntegerField

id

Type: BigAutoField

objects

point_override

Type: DecimalField

start_char

Type: IntegerField

submission

Type: ForeignKey to Submission

submission_id

Internal field, use submission instead.

text

Type: CharField

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned