Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nathan R Lapierre
advisor
Commits
e5bd3328
Commit
e5bd3328
authored
Jan 28, 2014
by
Daniel W Bond
Browse files
something was changed
parent
3ae2dc5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
advisor/trajectories/models.py
View file @
e5bd3328
...
...
@@ -28,9 +28,6 @@ class Course(BaseModel):
# catalog year for the course
catalogYear
=
models
.
DateField
()
# needs to be associated with a student, may not belong here
isCompleted
=
models
.
BooleanField
(
False
)
def
isUpperClass
:
if
courseNumber
>
300
:
return
True
:
...
...
@@ -110,6 +107,8 @@ class Student(models.Model):
# all of the student's trajectories
trajectory
=
models
.
ManyToManyField
(
'Trajectory'
,
null
=
True
)
completedCourses
=
models
.
ManyToManyField
(
'Course'
,
null
=
True
)
# aka username, etc should all be here
class
Meta
:
...
...
@@ -138,8 +137,6 @@ class Trajectory(BaseModel):
# CHECK VIEWS, MAKE SURE I DIDN'T ALREADY SOMEHOW ACCOUNT FOR THIS
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
isPublic
=
models
.
BooleanField
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment