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:
id (BigAutoField) – Primary key: ID
language (CharField) – Language
base_file (FileField) – Base file
user_id (CharField) – User id
date (DateTimeField) – Date
url (URLField) – Url
status (CharField) – Status
Relationship fields:
- Parameters:
assignment (
ForeignKey
toAssignment
) – Assignment (related name:moss_results
)period (
ForeignKey
toPeriod
) – Period (related name:moss_results
)
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
toAssignment
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
toPeriod
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