diff options
author | Jay Parikh | 2013-03-18 15:11:15 +0530 |
---|---|---|
committer | Jay Parikh | 2013-03-18 15:11:15 +0530 |
commit | c12f20984aa75751af89a0d6213bc35924bc593b (patch) | |
tree | 4608e7b6088a7fb81fc5f9e2e1c021df45eddad4 /testapp/exam/models.py | |
parent | 65d4498ff96090fecc569440f0cd1499ae0f6b69 (diff) | |
download | online_test-c12f20984aa75751af89a0d6213bc35924bc593b.tar.gz online_test-c12f20984aa75751af89a0d6213bc35924bc593b.tar.bz2 online_test-c12f20984aa75751af89a0d6213bc35924bc593b.zip |
Added code snippets for questions
Diffstat (limited to 'testapp/exam/models.py')
-rw-r--r-- | testapp/exam/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testapp/exam/models.py b/testapp/exam/models.py index 04789da..708c7af 100644 --- a/testapp/exam/models.py +++ b/testapp/exam/models.py @@ -44,6 +44,9 @@ class Question(models.Model): # Is this question active or not. If it is inactive it will not be used # when creating a QuestionPaper. active = models.BooleanField(default=True) + + #Code Snippet + snippet = models.CharField(max_length=256) #Tags for the Question. tags = TaggableManager() |