PublishedSubmission

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

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

Bases: Model

A published submission.

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.

get_published

Attributes

assignment

Type: ForeignKey to Assignment

assignment_id

Internal field, use assignment instead.

date

Type: DateTimeField

id

Type: BigAutoField

objects

student

Type: ForeignKey to User

student_id

Internal field, use student instead.

submission

Type: OneToOneField to Submission

submission_id

Internal field, use submission instead.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned