summaryrefslogtreecommitdiff
path: root/yaksh/migrations
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-03-22 16:56:29 +0530
committerGitHub2017-03-22 16:56:29 +0530
commit99addf818d4b7c5c2d4ccecac7d50b0a5ea89a72 (patch)
tree644c7ff9a21c8f7b14519fe84492341a58099c4c /yaksh/migrations
parent49a4cbac480f8a9e3fafcd50e6ce2fa41a5d8699 (diff)
parent99b0bd05370e92ee3663354e5ca9122b75cfb2a7 (diff)
downloadonline_test-99addf818d4b7c5c2d4ccecac7d50b0a5ea89a72.tar.gz
online_test-99addf818d4b7c5c2d4ccecac7d50b0a5ea89a72.tar.bz2
online_test-99addf818d4b7c5c2d4ccecac7d50b0a5ea89a72.zip
Merge pull request #215 from maheshgudi/fill_in_the_blanks
Fill in the blanks
Diffstat (limited to 'yaksh/migrations')
-rw-r--r--yaksh/migrations/0003_auto_20170321_0917.py52
1 files changed, 52 insertions, 0 deletions
diff --git a/yaksh/migrations/0003_auto_20170321_0917.py b/yaksh/migrations/0003_auto_20170321_0917.py
new file mode 100644
index 0000000..5a575c7
--- /dev/null
+++ b/yaksh/migrations/0003_auto_20170321_0917.py
@@ -0,0 +1,52 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9.5 on 2017-03-21 09:17
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('yaksh', '0002_questionpaper_fixed_question_order'),
+ ]
+
+ 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),
+ ),
+ ]