Comment¶
Qualified name: tin.apps.submissions.models.Comment
- class Comment(*args, **kwargs)[source]¶
Bases:
Model
A comment on a submission by a user
- Parameters:
id (BigAutoField) – Primary key: ID
start_char (IntegerField) – Start char
end_char (IntegerField) – End char
date (DateTimeField) – Date
text (CharField) – Text
point_override (DecimalField) – Point override
Relationship fields:
- Parameters:
submission (
ForeignKey
toSubmission
) – Submission (related name:comments
)author (
ForeignKey
toUser
) – Author (related name:comments
)
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
toUser
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
toSubmission
submission_id
Internal field, use
submission
instead.text
Type:
CharField
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned