diff options
author | Prabhu Ramachandran | 2018-01-03 22:23:19 +0530 |
---|---|---|
committer | GitHub | 2018-01-03 22:23:19 +0530 |
commit | feb295b4107a95621e9430f5c7042cfde4674cc0 (patch) | |
tree | 098c7cdc1e97d5e7bd859e35107a4733e800a586 /yaksh/forms.py | |
parent | e566d54239efcb46f253e324b7295a676378f656 (diff) | |
parent | 4310d5905a9cc702198e42830c1b670957cd7360 (diff) | |
download | online_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.py | 8 |
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): |