Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
advisor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
SRCT
advisor
Commits
37bec5e7
Commit
37bec5e7
authored
Mar 02, 2014
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:srct/advisor
parents
de4f3a70
fcb8acd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
advisor/mainapp/forms.py
advisor/mainapp/forms.py
+2
-6
No files found.
advisor/mainapp/forms.py
View file @
37bec5e7
...
...
@@ -5,12 +5,8 @@ from mainapp.models import Student, Major, Minor, GenEd
# form on new page
class
StartTrajectoryForm
(
forms
.
Form
):
majors
=
Major
.
objects
.
all
()
print
majors
minors
=
Minor
.
objects
.
all
()
print
minors
major
=
forms
.
ChoiceField
(
majors
)
minor
=
forms
.
ChoiceField
(
majors
)
majors
=
forms
.
ChoiceField
(
choices
=
Major
.
objects
.
all
())
minors
=
forms
.
ChoiceField
(
choices
=
Minor
.
objects
.
all
())
class
StudentForm
(
forms
.
ModelForm
):
class
Meta
:
...
...
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