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
f5373ef8
Commit
f5373ef8
authored
Jan 31, 2014
by
Daniel W Bond
Browse files
laying out the forms
parent
25b961d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
advisor/trajectories/forms.py
View file @
f5373ef8
...
...
@@ -17,16 +17,37 @@ class StyledSeachForm( SearchForm ):
}),
)
# class SelectYourCourses( ModelForm ):
# class Meta:
# models = Course
# widgets = {
# department abbreviation
# course number
# name
class
NewTrajectoryForm
(
ModelForm
):
# def __init__(self, *args, **kwargs):
class
Meta
:
model
=
Trajectory
fields
=
(
fields
=
(
'name'
,
'degreeType'
,
'programType'
,
)
exclude
=
(
exclude
=
(
'courseReqs'
,
'created'
,
'last_modified'
,
'catalogYear'
,
'isCompleted'
,
)
labels
=
{
}
widgets
=
{
# name of major(s)
'name'
:
TextInput
(
attrs
=
{
'class'
:
'form-control'
,
'placeholder'
:
'Government and International Politics'
,
}),
# name of minor(s)
# are you in the honors college?
# current semester
}
advisor/trajectories/models.py
View file @
f5373ef8
...
...
@@ -77,12 +77,12 @@ class Program(BaseModel):
name
=
models
.
CharField
(
max_length
=
150
)
# programSlug = models.SlugField(max_length = 50, unique = True)
# courseCollections
courseReqs
=
models
.
ManyToManyField
(
'CourseCollection'
,)
# major or minor or gened
programType
=
models
.
CharField
(
max_length
=
25
)
# courseCollections
courseReqs
=
models
.
ManyToManyField
(
'CourseCollection'
,)
# is BA, BS, Honors
# all majors must take a gened program, null for minors, geneds
# CHECK VIEWS, MAKE SURE I DIDN'T ALREADY SOMEHOW ACCOUNT FOR THIS
...
...
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