Senior

Qualified name: intranet.apps.seniors.models.Senior

class intranet.apps.seniors.models.Senior(id, user, college, major, college_sure, major_sure)[source]

Bases: Model

Parameters:

Relationship fields:

Parameters:

Methods

get_major_display

Shows the label of the major.

Attributes

MAJORS

college

Type: ForeignKey to College

college_id

Internal field, use college instead.

college_sure

Type: BooleanField

id

Type: AutoField

major

Type: CharField

major_sure

Type: BooleanField

objects

user

Type: OneToOneField to User

user_id

Internal field, use user instead.