Folder

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

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

Bases: Model

A folder for assignments.

Each course can have multiple folders, and each assignment can be in a folder.

Parameters:

Relationship fields:

Parameters:

course (ForeignKey to Course) – Course (related name: folders)

Reverse relationships:

Parameters:

assignments (Reverse ForeignKey from Assignment) – All assignments of this folder (related name of folder)

Methods

get_absolute_url

Attributes

assignments

Type: Reverse ForeignKey from Assignment

course

Type: ForeignKey to Course

course_id

Internal field, use course instead.

id

Type: BigAutoField

name

Type: CharField

objects

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned