Any help is greatly appreciated, I am a newbie in django.
class studentRegister(forms.Form):
courseList = forms.ModelMultipleChoiceField(queryset=Courses.objects.all())
Thank you and appreciate your time, I just want to modify this type of form so I can multiple select two or more options at a time and that returns in a list maybe?
I think you can use the
SelectMultiple
widget. SourceIf this does not fit your needs, you can try using this snippet.
One idea is work with Bootstrap classes and Python.
forms.py
view.py
myPage.html