diff options
-rw-r--r-- | yaksh/migrations/0002_auto_20170320_1135.py | 52 |
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), + ), + ] |