summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormahesh2017-03-20 17:23:51 +0530
committermahesh2017-03-20 17:23:51 +0530
commit977399542df00349cc87917191af343226c44596 (patch)
tree1607d0c17cd7df02bbc0eca614d7f6a3d8f72a44
parentf0c7992aa21c4ab69985eb43e82f14b2764c8d8c (diff)
downloadonline_test-977399542df00349cc87917191af343226c44596.tar.gz
online_test-977399542df00349cc87917191af343226c44596.tar.bz2
online_test-977399542df00349cc87917191af343226c44596.zip
added migrations for fill in the blanks
-rw-r--r--yaksh/migrations/0002_auto_20170320_1135.py52
1 files changed, 52 insertions, 0 deletions
diff --git a/yaksh/migrations/0002_auto_20170320_1135.py b/yaksh/migrations/0002_auto_20170320_1135.py
new file mode 100644
index 0000000..81c7572
--- /dev/null
+++ b/yaksh/migrations/0002_auto_20170320_1135.py
@@ -0,0 +1,52 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9.5 on 2017-03-20 11:35
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('yaksh', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='FloatTestCase',
+ fields=[
+ ('testcase_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='yaksh.TestCase')),
+ ('correct', models.FloatField(default=None)),
+ ('error_margin', models.FloatField(blank=True, default=0.0, help_text='Margin of error', null=True)),
+ ],
+ bases=('yaksh.testcase',),
+ ),
+ migrations.CreateModel(
+ name='IntegerTestCase',
+ fields=[
+ ('testcase_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='yaksh.TestCase')),
+ ('correct', models.IntegerField(default=None)),
+ ],
+ bases=('yaksh.testcase',),
+ ),
+ migrations.CreateModel(
+ name='StringTestCase',
+ fields=[
+ ('testcase_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='yaksh.TestCase')),
+ ('correct', models.TextField(default=None)),
+ ('string_check', models.CharField(choices=[('lower', 'Case Insensitive'), ('exact', 'Case Sensitive')], max_length=200)),
+ ],
+ bases=('yaksh.testcase',),
+ ),
+ migrations.AlterField(
+ model_name='question',
+ name='type',
+ field=models.CharField(choices=[('mcq', 'Single Correct Choice'), ('mcc', 'Multiple Correct Choices'), ('code', 'Code'), ('upload', 'Assignment Upload'), ('integer', 'Answer in Integer'), ('string', 'Answer in String'), ('float', 'Answer in Float')], max_length=24),
+ ),
+ migrations.AlterField(
+ model_name='testcase',
+ name='type',
+ field=models.CharField(choices=[('standardtestcase', 'Standard Testcase'), ('stdiobasedtestcase', 'StdIO Based Testcase'), ('mcqtestcase', 'MCQ Testcase'), ('hooktestcase', 'Hook Testcase'), ('integertestcase', 'Integer Testcase'), ('stringtestcase', 'String Testcase'), ('floattestcase', 'Float Testcase')], max_length=24, null=True),
+ ),
+ ]