PublishedSubmission¶
Qualified name: tin.apps.submissions.models.PublishedSubmission
- class PublishedSubmission(*args, **kwargs)[source]¶
Bases:
Model
A published submission.
- Parameters:
id (BigAutoField) – Primary key: ID
date (DateTimeField) – Date
Relationship fields:
- Parameters:
assignment (
ForeignKey
toAssignment
) – Assignment (related name:final_submissions
)student (
ForeignKey
toUser
) – Student (related name:final_submissions
)submission (
OneToOneField
toSubmission
) – Submission (related name:final_submission
)
Methods
get_next_by_date
Finds next instance based on
date
.get_previous_by_date
Finds previous instance based on
date
.get_published
Attributes
assignment
Type:
ForeignKey
toAssignment
assignment_id
Internal field, use
assignment
instead.date
Type:
DateTimeField
id
Type:
BigAutoField
objects
student
Type:
ForeignKey
toUser
student_id
Internal field, use
student
instead.submission
Type:
OneToOneField
toSubmission
submission_id
Internal field, use
submission
instead.- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned