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:
id (BigAutoField) – Primary key: ID
name (CharField) – Name
Relationship fields:
- Parameters:
course (
ForeignKey
toCourse
) – Course (related name:folders
)
Reverse relationships:
- Parameters:
assignments (Reverse
ForeignKey
fromAssignment
) – All assignments of this folder (related name offolder
)
Methods
get_absolute_url
Attributes
assignments
Type: Reverse
ForeignKey
fromAssignment
course
Type:
ForeignKey
toCourse
course_id
Internal field, use
course
instead.id
Type:
BigAutoField
name
Type:
CharField
objects
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned