Commit e898b879 authored by Ben Waters's avatar Ben Waters

adding select multiple in forms.py

parent 8280e9ec
......@@ -5,8 +5,11 @@ from mainapp.models import Student, Major, Minor, GenEd
# form on new page
class StartTrajectoryForm(forms.Form):
major = forms.CharField(max_length=100)
minor = forms.CharField(max_length=100)
majors = Major.objects.all()
minors = Minor.objects.all()
major = forms.ChoiceField(majors)
minor = forms.ChoiceField(majors)
class StudentForm(forms.ModelForm):
class Meta:
model = Student
......
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