diff options
author | prathamesh | 2016-12-19 06:35:00 +0530 |
---|---|---|
committer | prathamesh | 2016-12-19 06:35:00 +0530 |
commit | e436ec35a4086a16208e30e1384ca0ebc8082570 (patch) | |
tree | fdc97486ed6a89c472214f8d076800173b4352f2 /yaksh/models.py | |
parent | 50d76bbd9f349d1cec113c92b58a6f5ad750a841 (diff) | |
download | online_test-e436ec35a4086a16208e30e1384ca0ebc8082570.tar.gz online_test-e436ec35a4086a16208e30e1384ca0ebc8082570.tar.bz2 online_test-e436ec35a4086a16208e30e1384ca0ebc8082570.zip |
change in add question interface
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 7a64bba..77e77ee 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -1126,8 +1126,8 @@ class TestCase(models.Model): type = models.CharField(max_length=24, choices=test_case_types, null=True) class StandardTestCase(TestCase): - test_case = models.CharField(blank=True, max_length=100) - weight = models.FloatField(default=0.0) + test_case = models.TextField() + weight = models.FloatField(default=1.0) def get_field_value(self): return {"test_case": self.test_case, @@ -1142,7 +1142,7 @@ class StandardTestCase(TestCase): class StdioBasedTestCase(TestCase): expected_input = models.CharField(max_length=100, blank=True) expected_output = models.CharField(max_length=100) - weight = models.IntegerField(default=0.0) + weight = models.IntegerField(default=1.0) def get_field_value(self): return {"expected_output": self.expected_output, @@ -1170,4 +1170,4 @@ class McqTestCase(TestCase): class HookTestCase(TestCase): code = models.TextField() - weight = models.FloatField(default=0.0) + weight = models.FloatField(default=1.0) |