summaryrefslogtreecommitdiff
path: root/yaksh/forms.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2018-01-03 22:23:19 +0530
committerGitHub2018-01-03 22:23:19 +0530
commitfeb295b4107a95621e9430f5c7042cfde4674cc0 (patch)
tree098c7cdc1e97d5e7bd859e35107a4733e800a586 /yaksh/forms.py
parente566d54239efcb46f253e324b7295a676378f656 (diff)
parent4310d5905a9cc702198e42830c1b670957cd7360 (diff)
downloadonline_test-feb295b4107a95621e9430f5c7042cfde4674cc0.tar.gz
online_test-feb295b4107a95621e9430f5c7042cfde4674cc0.tar.bz2
online_test-feb295b4107a95621e9430f5c7042cfde4674cc0.zip
Merge pull request #408 from prathamesh920/exercise
Exercise feature in video lessons
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r--yaksh/forms.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py
index 52e6a12..8399bc9 100644
--- a/yaksh/forms.py
+++ b/yaksh/forms.py
@@ -173,6 +173,12 @@ class UserLoginForm(forms.Form):
return user
+class ExerciseForm(forms.ModelForm):
+ class Meta:
+ model = Quiz
+ fields = ['description', 'view_answerpaper']
+
+
class QuizForm(forms.ModelForm):
"""Creates a form to add or edit a Quiz.
It has the related fields and functions required."""
@@ -209,7 +215,7 @@ class QuizForm(forms.ModelForm):
class Meta:
model = Quiz
- exclude = ["is_trial", "creator"]
+ exclude = ["is_trial", "creator", "is_exercise"]
class QuestionForm(forms.ModelForm):