0009_semestersdates.py 1.15 KB
Newer Older
Florent Chehab's avatar
Florent Chehab committed
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
# Generated by Django 2.0.3 on 2018-08-20 16:23

from django.db import migrations, models
import django.db.models.deletion
import rex.models.tools.usefullLinksField


class Migration(migrations.Migration):

    dependencies = [
        ('rex', '0008_auto_20180820_1752'),
    ]

    operations = [
        migrations.CreateModel(
            name='SemestersDates',
            fields=[
                ('comment', models.TextField(blank=True)),
                ('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),
                ('university', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='university_semesters_dates', serialize=False, to='rex.University')),
                ('spring_begin', models.DateField(null=True)),
                ('spring_end', models.DateField(null=True)),
                ('autumn_begin', models.DateField(null=True)),
                ('autumn_end', models.DateField(null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]