Commit e5bd3328 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

something was changed

parent 3ae2dc5c
...@@ -28,9 +28,6 @@ class Course(BaseModel): ...@@ -28,9 +28,6 @@ class Course(BaseModel):
# catalog year for the course # catalog year for the course
catalogYear = models.DateField() catalogYear = models.DateField()
# needs to be associated with a student, may not belong here
isCompleted = models.BooleanField(False)
def isUpperClass: def isUpperClass:
if courseNumber > 300: if courseNumber > 300:
return True: return True:
...@@ -110,6 +107,8 @@ class Student(models.Model): ...@@ -110,6 +107,8 @@ class Student(models.Model):
# all of the student's trajectories # all of the student's trajectories
trajectory = models.ManyToManyField('Trajectory', null=True) trajectory = models.ManyToManyField('Trajectory', null=True)
completedCourses = models.ManyToManyField('Course', null=True)
# aka username, etc should all be here # aka username, etc should all be here
class Meta: class Meta:
...@@ -138,8 +137,6 @@ class Trajectory(BaseModel): ...@@ -138,8 +137,6 @@ class Trajectory(BaseModel):
# CHECK VIEWS, MAKE SURE I DIDN'T ALREADY SOMEHOW ACCOUNT FOR THIS # CHECK VIEWS, MAKE SURE I DIDN'T ALREADY SOMEHOW ACCOUNT FOR THIS
forPrograms = models.ManyToManyField('Program',) forPrograms = models.ManyToManyField('Program',)
# function returns if it is an end node on the tree
# whether or not the trajectory can be seen by others # whether or not the trajectory can be seen by others
isPublic = models.BooleanField() isPublic = models.BooleanField()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment