summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorCruiseDevice2020-04-29 22:11:19 +0530
committerCruiseDevice2020-04-29 22:11:19 +0530
commitf050dd919d5719874aafadf0a674d816a25bc9eb (patch)
treed57fc06ab7b9f5c802ddb4b4394d48c80c34b644 /yaksh/models.py
parent53a0c4ad3e733f3960000527f83565f2fd8fc412 (diff)
downloadonline_test-f050dd919d5719874aafadf0a674d816a25bc9eb.tar.gz
online_test-f050dd919d5719874aafadf0a674d816a25bc9eb.tar.bz2
online_test-f050dd919d5719874aafadf0a674d816a25bc9eb.zip
Fix: #696
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 9bcb132..d67a8e3 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -49,6 +49,7 @@ languages = (
("java", "Java Language"),
("scilab", "Scilab"),
("r", "R"),
+ ("other", "Other")
)
question_types = (
@@ -1292,6 +1293,8 @@ class Question(models.Model):
language = models.CharField(max_length=24,
choices=languages)
+ topic = models.CharField(max_length=50, blank=True, null=True)
+
# The type of question.
type = models.CharField(max_length=24, choices=question_types)