Section¶
Qualified name: intranet.apps.users.models.Section
- class intranet.apps.users.models.Section(*args, **kwargs)[source]¶
Bases:
ModelRepresents 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 (
ForeignKeytoCourse) – Course (related name:sections)teacher (
ForeignKeytoUser) – Teacher (related name:section)
Reverse relationships:
- Parameters:
_students (Reverse
ManyToManyFieldfromUserProperties) – All students of this section (related name of_schedule)
Methods
Attributes
courseType:
ForeignKeytoCoursecourse_idInternal field, use
courseinstead.idType:
AutoFieldobjectsperiodType:
IntegerFieldroomType:
CharFieldsection_idType:
CharFieldsemType:
CharFieldteacherType:
ForeignKeytoUserteacher_idInternal field, use
teacherinstead.