diff options
author | maheshgudi | 2017-01-26 01:43:47 +0530 |
---|---|---|
committer | maheshgudi | 2017-03-02 20:38:41 +0530 |
commit | 4ef5f9377c27a3e88ae3a1a4e2a446984fc14b70 (patch) | |
tree | 8cad540dcd71b83b7b308feb9a3d87cc1f7e1128 /yaksh/forms.py | |
parent | 059034c0ec77d130eeb55af62c456773c2a64b2a (diff) | |
download | online_test-4ef5f9377c27a3e88ae3a1a4e2a446984fc14b70.tar.gz online_test-4ef5f9377c27a3e88ae3a1a4e2a446984fc14b70.tar.bz2 online_test-4ef5f9377c27a3e88ae3a1a4e2a446984fc14b70.zip |
added integer based question type
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r-- | yaksh/forms.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py index 6ec031c..4bf4fcf 100644 --- a/yaksh/forms.py +++ b/yaksh/forms.py @@ -1,7 +1,7 @@ from django import forms from yaksh.models import get_model_class, Profile, Quiz, Question, TestCase, Course,\ QuestionPaper, StandardTestCase, StdIOBasedTestCase, \ - HookTestCase + HookTestCase, IntegerTestCase from django.contrib.auth import authenticate from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType @@ -35,6 +35,7 @@ question_types = ( ("mcc", "Multiple Correct Choices"), ("code", "Code"), ("upload", "Assignment Upload"), + ("integer", "Answer in Integer"), ) test_case_types = ( @@ -42,6 +43,7 @@ test_case_types = ( ("stdiobasedtestcase", "StdIO Based Testcase"), ("mcqtestcase", "MCQ Testcase"), ("hooktestcase", "Hook Testcase"), + ("integertestcase", "Integer Testcase"), ) UNAME_CHARS = letters + "._" + digits |