summaryrefslogtreecommitdiff
path: root/yaksh/migrations/0011_release_0_8_0.py
blob: 41a2abd73b86055c74c015ec581da7ddb9ccfbd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2018-03-23 10:46
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('grades', 'default_grading_system'),
        ('yaksh', '0010_auto_20180226_1324'),
    ]

    operations = [
        migrations.CreateModel(
            name='ArrangeTestCase',
            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')),
                ('options', models.TextField(default=None)),
            ],
            bases=('yaksh.testcase',),
        ),
        migrations.CreateModel(
            name='TestCaseOrder',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('order', models.TextField()),
                ('answer_paper', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answer_paper', to='yaksh.AnswerPaper')),
            ],
        ),
        migrations.RenameField(
            model_name='coursestatus',
            old_name='total_marks',
            new_name='percentage',
        ),
        migrations.AddField(
            model_name='course',
            name='grading_system',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='grades.GradingSystem'),
        ),
        migrations.AddField(
            model_name='questionpaper',
            name='shuffle_testcases',
            field=models.BooleanField(default=True, verbose_name='Shuffle testcase for each user'),
        ),
        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'), ('arrange', 'Arrange in Correct Order')], max_length=24),
        ),
        migrations.AlterField(
            model_name='quiz',
            name='weightage',
            field=models.FloatField(default=100, help_text='Will be considered as percentage'),
        ),
        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'), ('arrangetestcase', 'Arrange Testcase')], max_length=24, null=True),
        ),
        migrations.AddField(
            model_name='testcaseorder',
            name='question',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='yaksh.Question'),
        ),
    ]