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
05a9613a
Commit
05a9613a
authored
Dec 06, 2013
by
Daniel W Bond
Browse files
should write before committing
parent
09bb937c
Changes
2
Hide whitespace changes
Inline
Side-by-side
advisor/trajectories/models.py
View file @
05a9613a
...
...
@@ -8,12 +8,18 @@ class BaseModel(models.Model):
class
Meta
:
abstract
=
True
class
Program
(
BaseModel
):
isBA
=
models
.
BooleanField
()
# geneds are different if BA or BS
# major or minor or gened
programType
=
models
.
CharField
()
# is BA, there are these geneds, if BA, those
degreeType
=
models
.
CharField
()
# unless they're in the honors program
# and then there are separate geneds
honors
=
models
.
BooleanField
()
class
Meta
:
ordering
=
(
'name'
,)
...
...
@@ -22,21 +28,24 @@ class Program(BaseModel):
class
Course
(
BaseModel
):
department
=
models
.
CharField
(
max_length
=
5
)
# ordering
prerequisites
=
models
.
ManyToManyField
()
corequisites
=
models
.
ManyToManyField
()
# basic course information
department
=
models
.
CharField
(
max_length
=
150
)
departmentAbbr
=
models
.
CharField
(
max_length
=
5
)
courseNumber
=
models
.
CharField
(
max_length
=
3
)
# available next semester?
# CRN
# section number
# professor
# Course may need
P
rogram-specific information
# Course may need
p
rogram-specific information
slug
=
models
.
SlugField
(
max_length
=
50
)
# ordering
prerequisites
=
models
.
ManyToManyField
()
corequisites
=
models
.
ManyToManyField
()
# default sorting order in admin
class
Meta
:
ordering
=
(
'name'
,)
...
...
advisor/trajectories/sample-io.txt
View file @
05a9613a
...
...
@@ -6,8 +6,6 @@ PROGRAM REQUIREMENTS
CS112(prereq=[],coreq=[CS101,MATH113])
edge case-- course is only required or available if a certain major is selected
# user enters courses they have taken
allCourses = [Every, Damn, Course]
coursesTaken = [Courses, Student, Already, Has, Completed]
...
...
@@ -51,6 +49,10 @@ nextCourses is all of the courses it is possible for you to take next
GEN ED REQUIREMENTS
#############################################
# I don't think even from a UX perspective that anyone would ever want to see all
# of the geneds that they could concievably take a subseqent semester-- there would
# be like eleventy billion of then
# checks if you've taken a gened for a specific set of geneds (say, philosophy)
def genedCheck(coursesTaken, genEdCourses):
diff coursesTaken, genEdCourses
...
...
@@ -63,12 +65,24 @@ def genedCheck(coursesTaken, genEdCourses):
# users are able to select which courses they *want* to take for gen eds
# then pass the allCourses through allPrereqCoreq? NOT COOL
gen eds are also different depending on liberal arts or not
BEYOND PREREQ COREQ
#############################################
"Through 200 level"
"At least 12 credits of xxx"
"One of "these" and two of "those""
"electives"
"take two sequences of"
OTHER THOUGHTS
#############################################
NO WAY TO CHECK ACCURACY OF USER INPUT
this is important for modifying trajectories-- see below
once a user has selected the courses they want to take for the subsequent semester,
this is saved as a trajectory
...
...
@@ -87,3 +101,14 @@ with other students... --will need to implement later
should be able to point out "by permission of instructor"
also, what if the user input is wrong? answer: this system just assumes that it's right
needs to limit the number of programs that can be selected-- there already is one, implicitly
from a BA or BS selection, and then Honors?
UX
#############################################
User arrives on homepage, selects program, (Honors College?) and is prompted to select
already-completed courses.
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