Section¶
Qualified name: intranet.apps.users.models.Section
- class intranet.apps.users.models.Section(*args, **kwargs)[source]¶
Bases:
Model
Represents a section - a class with teacher, period, and room assignments
NOTE: This model is no longer used because of privacy reasons.
- Parameters:
id (AutoField) – Primary key: ID
room (CharField) – Room
period (IntegerField) – Period
section_id (CharField) – Section id
sem (CharField) – Sem
Relationship fields:
- Parameters:
course (
ForeignKey
toCourse
) – Course (related name:sections
)teacher (
ForeignKey
toUser
) – Teacher (related name:section
)
Reverse relationships:
- Parameters:
_students (Reverse
ManyToManyField
fromUserProperties
) – All students of this section (related name of_schedule
)
Methods
Attributes
course
Type:
ForeignKey
toCourse
course_id
Internal field, use
course
instead.id
Type:
AutoField
objects
period
Type:
IntegerField
room
Type:
CharField
section_id
Type:
CharField
sem
Type:
CharField
teacher
Type:
ForeignKey
toUser
teacher_id
Internal field, use
teacher
instead.