summaryrefslogtreecommitdiff
path: root/yaksh/forms.py
diff options
context:
space:
mode:
authormaheshgudi2017-01-06 14:43:06 +0530
committermaheshgudi2017-01-09 18:10:30 +0530
commit6b8f8f53d7110e27bc44f0d50b8b3155155932f6 (patch)
treea40ab519998f1b68c11da2d6964889e9f2485019 /yaksh/forms.py
parentec5cb67b3314d05675c501cd78ce92d02ae8fde4 (diff)
downloadonline_test-6b8f8f53d7110e27bc44f0d50b8b3155155932f6.tar.gz
online_test-6b8f8f53d7110e27bc44f0d50b8b3155155932f6.tar.bz2
online_test-6b8f8f53d7110e27bc44f0d50b8b3155155932f6.zip
added hook evaluator type tuple in forms and fixed limit=0 mistake in grader
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r--yaksh/forms.py7
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']
+