summaryrefslogtreecommitdiff
path: root/yaksh/forms.py
diff options
context:
space:
mode:
authoradityacp2018-02-08 11:43:25 +0530
committeradityacp2018-02-08 11:43:25 +0530
commit440c18f4e0565e0824d432b01bc2be7b8847e122 (patch)
tree04c8ddf34d72cc54803f4f82bc1a1143ef68c9cc /yaksh/forms.py
parentb78b5d0b46114caefca35e82c502d1f7598e8e59 (diff)
downloadonline_test-440c18f4e0565e0824d432b01bc2be7b8847e122.tar.gz
online_test-440c18f4e0565e0824d432b01bc2be7b8847e122.tar.bz2
online_test-440c18f4e0565e0824d432b01bc2be7b8847e122.zip
Change in forms.py, views.py and models.py
- Add new attribute active in lesson and learningmodule model - Change learningmodule get_status method - Add condition in lesson, quiz and module views to check if module is active or not
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r--yaksh/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py
index 9fd2eaa..258a1ee 100644
--- a/yaksh/forms.py
+++ b/yaksh/forms.py
@@ -339,4 +339,4 @@ class LearningModuleForm(forms.ModelForm):
class Meta:
model = LearningModule
- fields = ['name', 'description']
+ fields = ['name', 'description', 'active']