summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradityacp2018-07-03 12:56:43 +0530
committeradityacp2018-07-03 12:56:43 +0530
commit90079412866434337b983bee222f3de904e79a76 (patch)
tree2fdb0ad22632a92b74dbc88ad2af38494a7ba2ef
parent637a75a5ea8fcae1e00c0200d52c471d50c8729a (diff)
downloadonline_test-90079412866434337b983bee222f3de904e79a76.tar.gz
online_test-90079412866434337b983bee222f3de904e79a76.tar.bz2
online_test-90079412866434337b983bee222f3de904e79a76.zip
Set marks field as not required in QuestionFilterForm
-rw-r--r--yaksh/forms.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py
index 41c9176..99e8dbe 100644
--- a/yaksh/forms.py
+++ b/yaksh/forms.py
@@ -258,6 +258,7 @@ class QuestionFilterForm(forms.Form):
self.fields['marks'] = forms.FloatField(
widget=forms.Select(choices=points_options)
)
+ self.fields['marks'].required = False
language = forms.CharField(
max_length=8, widget=forms.Select(choices=languages))
question_type = forms.CharField(