MossResult

Qualified name: tin.apps.assignments.models.MossResult

class MossResult(id, assignment, period, language, base_file, user_id, date, url, status)[source]

Bases: Model

Parameters:

Relationship fields:

Parameters:

Methods

get_language_display

Shows the label of the language.

get_next_by_date

Finds next instance based on date.

get_previous_by_date

Finds previous instance based on date.

Attributes

LANGUAGES

assignment

Type: ForeignKey to Assignment

assignment_id

Internal field, use assignment instead.

base_file

Type: FileField

date

Type: DateTimeField

download_folder

extension

id

Type: BigAutoField

language

Type: CharField

objects

period

Type: ForeignKey to Period

period_id

Internal field, use period instead.

status

Type: CharField

url

Type: URLField

user_id

Type: CharField

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned