Coverage for app/models/course.py: 100%
20 statements
« prev ^ index » next coverage.py v7.2.7, created at 2024-07-11 17:51 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2024-07-11 17:51 +0000
1from app.models import *
2from app.models.term import Term
3from app.models.courseStatus import CourseStatus
4from app.models.note import Note
5from app.models.user import User
7class Course(baseModel):
8 courseName = CharField()
9 courseAbbreviation = CharField()
10 sectionDesignation = CharField()
11 courseCredit = FloatField()
12 term = ForeignKeyField(Term, null = True)
13 status = ForeignKeyField(CourseStatus)
14 createdBy = ForeignKeyField(User)
15 serviceLearningDesignatedSections = TextField()
16 previouslyApprovedDescription = TextField()
17 isPermanentlyDesignated = BooleanField(default=False)
18 isAllSectionsServiceLearning = BooleanField(default=False)
19 isRegularlyOccurring = BooleanField(default=False)
20 isPreviouslyApproved = BooleanField(default=False)
21 hasSlcComponent = BooleanField(default=False)