QuizLogMessage¶
Qualified name: tin.apps.assignments.models.QuizLogMessage
- class QuizLogMessage(*args, **kwargs)[source]¶
Bases:
Model
A log message for an
Assignment
(withis_quiz
set toTrue
)- Parameters:
id (BigAutoField) – Primary key: ID
date (DateTimeField) – Date
content (CharField) – Content
severity (IntegerField) – Severity
Relationship fields:
- Parameters:
assignment (
ForeignKey
toAssignment
) – Assignment (related name:log_messages
)student (
ForeignKey
toUser
) – Student (related name:log_messages
)
Methods
get_absolute_url
get_next_by_date
Finds next instance based on
date
.get_previous_by_date
Finds previous instance based on
date
.Attributes
assignment
Type:
ForeignKey
toAssignment
assignment_id
Internal field, use
assignment
instead.content
Type:
CharField
date
Type:
DateTimeField
id
Type:
BigAutoField
objects
severity
Type:
IntegerField
student
Type:
ForeignKey
toUser
student_id
Internal field, use
student
instead.- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned