diff options
author | Prabhu Ramachandran | 2017-01-16 23:20:33 +0530 |
---|---|---|
committer | GitHub | 2017-01-16 23:20:33 +0530 |
commit | c3205b84ebd1796d98e140952802cdc0baad19a7 (patch) | |
tree | 4b63a64417776c95e12f2af75411075e6c0e7bd0 /yaksh/forms.py | |
parent | 899b2c4a347a6e7c4391dedce163a7ae0c4e8634 (diff) | |
parent | 987efbcba6e9976d1351a35454a62d6b8305009d (diff) | |
download | online_test-c3205b84ebd1796d98e140952802cdc0baad19a7.tar.gz online_test-c3205b84ebd1796d98e140952802cdc0baad19a7.tar.bz2 online_test-c3205b84ebd1796d98e140952802cdc0baad19a7.zip |
Merge pull request #176 from maheshgudi/hook_evaluator
Hook evaluator
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r-- | yaksh/forms.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py index 1d18d29..8a90dee 100644 --- a/yaksh/forms.py +++ b/yaksh/forms.py @@ -1,6 +1,7 @@ from django import forms from yaksh.models import get_model_class, Profile, Quiz, Question, TestCase, Course,\ - QuestionPaper, StandardTestCase, StdIOBasedTestCase + QuestionPaper, StandardTestCase, StdIOBasedTestCase, \ + HookTestCase from django.contrib.auth import authenticate from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType @@ -40,7 +41,8 @@ test_case_types = ( ("standardtestcase", "Standard Testcase"), ("stdiobasedtestcase", "StdIO Based Testcase"), ("mcqtestcase", "MCQ Testcase"), - ) + ("hooktestcase", "Hook Testcase"), + ) UNAME_CHARS = letters + "._" + digits PWD_CHARS = letters + punctuation + digits @@ -296,3 +298,4 @@ class QuestionPaperForm(forms.ModelForm): class Meta: model = QuestionPaper fields = ['shuffle_questions'] + |