summaryrefslogtreecommitdiff
path: root/yaksh/forms.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-03-22 16:56:29 +0530
committerGitHub2017-03-22 16:56:29 +0530
commit99addf818d4b7c5c2d4ccecac7d50b0a5ea89a72 (patch)
tree644c7ff9a21c8f7b14519fe84492341a58099c4c /yaksh/forms.py
parent49a4cbac480f8a9e3fafcd50e6ce2fa41a5d8699 (diff)
parent99b0bd05370e92ee3663354e5ca9122b75cfb2a7 (diff)
downloadonline_test-99addf818d4b7c5c2d4ccecac7d50b0a5ea89a72.tar.gz
online_test-99addf818d4b7c5c2d4ccecac7d50b0a5ea89a72.tar.bz2
online_test-99addf818d4b7c5c2d4ccecac7d50b0a5ea89a72.zip
Merge pull request #215 from maheshgudi/fill_in_the_blanks
Fill in the blanks
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r--yaksh/forms.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py
index 6ec031c..c6283c8 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, StringTestCase
from django.contrib.auth import authenticate
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
@@ -35,6 +35,9 @@ question_types = (
("mcc", "Multiple Correct Choices"),
("code", "Code"),
("upload", "Assignment Upload"),
+ ("integer", "Answer in Integer"),
+ ("string", "Answer in String"),
+ ("float", "Answer in Float"),
)
test_case_types = (
@@ -42,6 +45,9 @@ test_case_types = (
("stdiobasedtestcase", "StdIO Based Testcase"),
("mcqtestcase", "MCQ Testcase"),
("hooktestcase", "Hook Testcase"),
+ ("integertestcase", "Integer Testcase"),
+ ("stringtestcase", "String Testcase"),
+ ("floattestcase", "Float Testcase"),
)
UNAME_CHARS = letters + "._" + digits