diff options
author | adityacp | 2020-01-03 11:17:04 +0530 |
---|---|---|
committer | adityacp | 2020-01-03 11:17:04 +0530 |
commit | 664fa46ba041ebdc5912a3bf125056bbc52b1f95 (patch) | |
tree | 67e9c64e62906e8ad63e0e6e9f1324ce69da0fe0 /yaksh/forms.py | |
parent | 293e95bd0920d2f06058cf3ee4c0be3c2b3cf905 (diff) | |
download | online_test-664fa46ba041ebdc5912a3bf125056bbc52b1f95.tar.gz online_test-664fa46ba041ebdc5912a3bf125056bbc52b1f95.tar.bz2 online_test-664fa46ba041ebdc5912a3bf125056bbc52b1f95.zip |
Remove unncessary break html tags and add bootstrap custom file input
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r-- | yaksh/forms.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py index ffb15a6..951fcc1 100644 --- a/yaksh/forms.py +++ b/yaksh/forms.py @@ -398,8 +398,11 @@ class ProfileForm(forms.ModelForm): widget=forms.Select({'class': 'custom-select'}) ) + class UploadFileForm(forms.Form): - file = forms.FileField(widget=forms.FileInput(attrs={'class': 'upload'})) + file = forms.FileField( + widget=forms.FileInput(attrs={'class': 'custom-file-input'}) + ) class QuestionPaperForm(forms.ModelForm): |