2019-06-15 12:17:39 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2019-06-15 15:01:25 +00:00
|
|
|
# Generated by Django 1.11.20 on 2019-06-15 15:00
|
2019-06-15 12:17:39 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
import django.core.validators
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="EducationDepartment",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="StudyField",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="UV",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"code",
|
|
|
|
models.CharField(
|
|
|
|
max_length=10,
|
|
|
|
unique=True,
|
|
|
|
validators=[
|
|
|
|
django.core.validators.RegexValidator(
|
|
|
|
message="The code of an UV must only contains uppercase characters without accent and numbers",
|
|
|
|
regex="([A-Z0-9]+)",
|
|
|
|
)
|
|
|
|
],
|
|
|
|
verbose_name="code",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"credit_type",
|
|
|
|
models.CharField(
|
|
|
|
choices=[
|
|
|
|
("FREE", "Free"),
|
|
|
|
("CS", "CS"),
|
|
|
|
("TM", "TM"),
|
2019-06-15 15:01:25 +00:00
|
|
|
("OM", "OM"),
|
|
|
|
("QC", "QC"),
|
2019-06-15 12:17:39 +00:00
|
|
|
("EC", "EC"),
|
|
|
|
("RN", "RN"),
|
2019-06-15 15:01:25 +00:00
|
|
|
("ST", "ST"),
|
2019-06-15 12:17:39 +00:00
|
|
|
("EXT", "EXT"),
|
|
|
|
],
|
|
|
|
default="FREE",
|
|
|
|
max_length=10,
|
|
|
|
verbose_name="credit type",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"semester",
|
|
|
|
models.CharField(
|
|
|
|
choices=[
|
|
|
|
("CLOSED", "Closed"),
|
|
|
|
("AUTUMN", "Autumn"),
|
|
|
|
("SPRING", "Spring"),
|
|
|
|
("AUTOMN_AND_SPRING", "Autumn and spring"),
|
|
|
|
],
|
|
|
|
default="CLOSED",
|
2019-06-15 15:01:25 +00:00
|
|
|
max_length=20,
|
2019-06-15 12:17:39 +00:00
|
|
|
verbose_name="semester",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"language",
|
|
|
|
models.CharField(
|
|
|
|
choices=[
|
|
|
|
("FR", "French"),
|
|
|
|
("EN", "English"),
|
|
|
|
("DE", "German"),
|
|
|
|
("SP", "Spanich"),
|
|
|
|
],
|
|
|
|
default="FR",
|
|
|
|
max_length=10,
|
|
|
|
verbose_name="language",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"credits",
|
|
|
|
models.IntegerField(
|
|
|
|
validators=[django.core.validators.MinValueValidator(0)],
|
|
|
|
verbose_name="credits",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("title", models.CharField(max_length=300, verbose_name="title")),
|
|
|
|
(
|
|
|
|
"manager",
|
|
|
|
models.CharField(max_length=300, verbose_name="uv manager"),
|
|
|
|
),
|
|
|
|
("objectives", models.TextField(verbose_name="objectives")),
|
|
|
|
("program", models.TextField(verbose_name="program")),
|
|
|
|
("skills", models.TextField(verbose_name="skills")),
|
2019-06-15 15:01:25 +00:00
|
|
|
("key_concepts", models.TextField(verbose_name="key concepts")),
|
2019-06-15 12:17:39 +00:00
|
|
|
(
|
|
|
|
"hours_CM",
|
|
|
|
models.IntegerField(
|
2019-06-15 15:01:25 +00:00
|
|
|
default=0,
|
2019-06-15 12:17:39 +00:00
|
|
|
validators=[django.core.validators.MinValueValidator(0)],
|
|
|
|
verbose_name="hours CM",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"hours_TD",
|
|
|
|
models.IntegerField(
|
2019-06-15 15:01:25 +00:00
|
|
|
default=0,
|
2019-06-15 12:17:39 +00:00
|
|
|
validators=[django.core.validators.MinValueValidator(0)],
|
|
|
|
verbose_name="hours TD",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"hours_TP",
|
|
|
|
models.IntegerField(
|
2019-06-15 15:01:25 +00:00
|
|
|
default=0,
|
2019-06-15 12:17:39 +00:00
|
|
|
validators=[django.core.validators.MinValueValidator(0)],
|
|
|
|
verbose_name="hours TP",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"hours_THE",
|
|
|
|
models.IntegerField(
|
2019-06-15 15:01:25 +00:00
|
|
|
default=0,
|
2019-06-15 12:17:39 +00:00
|
|
|
validators=[django.core.validators.MinValueValidator(0)],
|
|
|
|
verbose_name="hours THE",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"hours_TE",
|
|
|
|
models.IntegerField(
|
2019-06-15 15:01:25 +00:00
|
|
|
default=0,
|
2019-06-15 12:17:39 +00:00
|
|
|
validators=[django.core.validators.MinValueValidator(0)],
|
|
|
|
verbose_name="hours TE",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"author",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="created_UVs",
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
2019-06-15 15:01:25 +00:00
|
|
|
verbose_name="author",
|
2019-06-15 12:17:39 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="UVComment",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="UVCommentReport",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|