Commit 13649278 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

moved css classes from views directly to form

parent 7ce585cd
......@@ -54,6 +54,7 @@ class WelcomeMajorForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(WelcomeMajorForm, self).__init__(*args, **kwargs)
self.fields['major'].widget.attrs['class'] = 'form-control chosen-select'
self.fields['graduating_year'].widget.attrs['class'] = 'form-control'
class Meta:
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