0006_auto_20190504_1752.py 2.73 KB
Newer Older
1 2 3 4 5 6 7 8 9
# Generated by Django 2.1.7 on 2019-05-04 15:52

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


class Migration(migrations.Migration):

10
    dependencies = [("backend_app", "0005_auto_20190423_2027")]
11 12

    operations = [
13 14 15
        migrations.RemoveField(model_name="coursefeedback", name="is_psf_credit"),
        migrations.RemoveField(model_name="coursefeedback", name="university"),
        migrations.RemoveField(model_name="exchange", name="courses"),
16
        migrations.AddField(
17 18 19 20 21 22 23 24
            model_name="course",
            name="exchange",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name="exchange_courses",
                to="backend_app.Exchange",
            ),
25 26
        ),
        migrations.AlterField(
27 28
            model_name="course",
            name="link",
29 30 31
            field=models.URLField(blank=True, max_length=500, null=True),
        ),
        migrations.AlterField(
32 33
            model_name="course",
            name="nb_credit",
34 35 36
            field=models.PositiveIntegerField(default=0),
        ),
        migrations.AlterField(
37
            model_name="course", name="utc_exchange_id", field=models.IntegerField()
38 39
        ),
        migrations.AlterField(
40 41 42 43 44 45 46 47 48
            model_name="coursefeedback",
            name="adequation",
            field=models.IntegerField(
                default=0,
                validators=[
                    django.core.validators.MaxValueValidator(5),
                    django.core.validators.MinValueValidator(-5),
                ],
            ),
49 50
        ),
        migrations.AlterField(
51 52 53 54 55 56 57 58
            model_name="coursefeedback",
            name="course",
            field=models.OneToOneField(
                default=0,
                on_delete=django.db.models.deletion.CASCADE,
                related_name="course_feedback",
                to="backend_app.Course",
            ),
59 60
        ),
        migrations.AlterField(
61 62 63 64 65 66 67 68 69
            model_name="coursefeedback",
            name="language_following_ease",
            field=models.IntegerField(
                default=0,
                validators=[
                    django.core.validators.MaxValueValidator(5),
                    django.core.validators.MinValueValidator(-5),
                ],
            ),
70 71
        ),
        migrations.AlterField(
72 73 74 75 76 77 78 79 80
            model_name="coursefeedback",
            name="working_dose",
            field=models.IntegerField(
                default=0,
                validators=[
                    django.core.validators.MaxValueValidator(5),
                    django.core.validators.MinValueValidator(-5),
                ],
            ),
81 82
        ),
    ]