diff options
author | CruiseDevice | 2020-01-02 16:18:59 +0530 |
---|---|---|
committer | CruiseDevice | 2020-01-02 16:18:59 +0530 |
commit | 75e8fb06b42420f21c8571341ef8300a102cd2c7 (patch) | |
tree | 37ac9aeae29a06fad73a596580ad9ce0970fcd6c /yaksh/forms.py | |
parent | eb05d4b0bc3fd0e2ce5160f30251bd9b939ccef6 (diff) | |
download | online_test-75e8fb06b42420f21c8571341ef8300a102cd2c7.tar.gz online_test-75e8fb06b42420f21c8571341ef8300a102cd2c7.tar.bz2 online_test-75e8fb06b42420f21c8571341ef8300a102cd2c7.zip |
Resolve conflicts
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r-- | yaksh/forms.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py index 8cc3d0a..4a90ef7 100644 --- a/yaksh/forms.py +++ b/yaksh/forms.py @@ -295,13 +295,16 @@ class QuestionFilterForm(forms.Form): points_options = [(None, 'Select Marks')] points_options.extend([(point, point) for point in points_list]) self.fields['marks'] = forms.FloatField( - widget=forms.Select(choices=points_options) + widget=forms.Select(choices=points_options, + attrs={'class': 'custom-select'}) ) self.fields['marks'].required = False language = forms.CharField( - max_length=8, widget=forms.Select(choices=languages)) + max_length=8, widget=forms.Select(choices=languages, + attrs={'class': 'custom-select'})) question_type = forms.CharField( - max_length=8, widget=forms.Select(choices=question_types) + max_length=8, widget=forms.Select(choices=question_types, + attrs={'class': 'custom-select'}) ) @@ -396,7 +399,7 @@ class ProfileForm(forms.ModelForm): ) class UploadFileForm(forms.Form): - file = forms.FileField() + file = forms.FileField(widget=forms.FileInput(attrs={'class':'upload'})) class QuestionPaperForm(forms.ModelForm): |