removed the restriction on code field and options field in models
authornishanth
Thu, 01 Jul 2010 16:28:46 +0530
changeset 82 79ae8288b5ff
parent 81 848c009b8a60
child 83 76971eed55c6
removed the restriction on code field and options field in models
quiz/models.py
--- a/quiz/models.py	Thu Jul 01 16:20:17 2010 +0530
+++ b/quiz/models.py	Thu Jul 01 16:28:46 2010 +0530
@@ -38,8 +38,8 @@
     topic = models.CharField(max_length=2,choices=TOPIC_CHOICES)
 
     description = models.TextField()
-    code = models.TextField()
-    options = models.TextField()
+    code = models.TextField(blank=True)
+    options = models.TextField(blank=True)
     time_limit = models.PositiveSmallIntegerField()
     expected_ans = models.TextField()