Commit 1ebd44fb authored by Ben Waters's avatar Ben Waters

seeing if it will query

parent aa17e9d4
...@@ -5,9 +5,9 @@ from mainapp.models import Student, Major, Minor, GenEd ...@@ -5,9 +5,9 @@ from mainapp.models import Student, Major, Minor, GenEd
# form on new page # form on new page
class StartTrajectoryForm(forms.Form): class StartTrajectoryForm(forms.Form):
majors = forms.ChoiceField(choices=[(obj.id, 'major') for obj in majors = forms.ChoiceField(choices=[(obj.id, obj.name) for obj in
Major.objects.all()]) Major.objects.all()])
minors = forms.ChoiceField(choices=[(obj.id, 'minor') for obj in minors = forms.ChoiceField(choices=[(obj.id, obj.name) for obj in
Minor.objects.all()]) Minor.objects.all()])
class StudentForm(forms.ModelForm): class StudentForm(forms.ModelForm):
......
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