Commit cea17f7c authored by Florent Chehab's avatar Florent Chehab

Squashed Django revision

parent dbed16cc
Pipeline #36196 failed with stages
in 4 minutes and 19 seconds
# Generated by Django 2.1.7 on 2019-03-10 13:41
import backend_app.fields
import backend_app.models.abstract.my_model.myModel
import backend_app.models.university.university
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),
("contenttypes", "0002_remove_content_type_name"),
("base_app", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="Campus",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
("title", models.CharField(blank=True, default="", max_length=150)),
("comment", models.CharField(blank=True, default="", max_length=5000)),
("useful_links", backend_app.fields.JSONField(default=list)),
(
"importance_level",
models.CharField(
choices=[
("-", "normal"),
("+", "important"),
("++", "IMPORTANT"),
],
default="-",
max_length=2,
),
),
("is_main_campus", models.BooleanField()),
("name", models.CharField(blank=True, default="", max_length=200)),
(
"lat",
models.DecimalField(
decimal_places=6,
max_digits=10,
validators=[
django.core.validators.MinValueValidator(-85.05112878),
django.core.validators.MaxValueValidator(85.05112878),
],
),
),
(
"lon",
models.DecimalField(
decimal_places=6,
max_digits=10,
validators=[
django.core.validators.MinValueValidator(-180),
django.core.validators.MaxValueValidator(180),
],
),
),
],
),
migrations.CreateModel(
name="CampusTaggedItem",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
("title", models.CharField(blank=True, default="", max_length=150)),
("comment", models.CharField(blank=True, default="", max_length=5000)),
("useful_links", backend_app.fields.JSONField(default=list)),
(
"importance_level",
models.CharField(
choices=[
("-", "normal"),
("+", "important"),
("++", "IMPORTANT"),
],
default="-",
max_length=2,
),
),
("custom_content", backend_app.fields.JSONField(default=dict)),
(
"campus",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
related_name="campus_tagged_items",
to="backend_app.Campus",
),
),
],
),
migrations.CreateModel(
name="City",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
("name", models.CharField(max_length=200)),
(
"local_name",
models.CharField(blank=True, default="", max_length=200),
),
("area", models.CharField(blank=True, default="", max_length=200)),
],
options={"abstract": False},
),
migrations.CreateModel(
name="CityTaggedItem",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
("title", models.CharField(blank=True, default="", max_length=150)),
("comment", models.CharField(blank=True, default="", max_length=5000)),
("useful_links", backend_app.fields.JSONField(default=list)),
(
"importance_level",
models.CharField(
choices=[
("-", "normal"),
("+", "important"),
("++", "IMPORTANT"),
],
default="-",
max_length=2,
),
),
("custom_content", backend_app.fields.JSONField(default=dict)),
(
"city",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
related_name="city_tagged_items",
to="backend_app.City",
),
),
],
),
migrations.CreateModel(
name="Country",
fields=[
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
("name", models.CharField(max_length=200)),
(
"iso_alpha2_code",
models.CharField(max_length=2, primary_key=True, serialize=False),
),
(
"iso_alpha3_code",
models.CharField(blank=True, default="", max_length=3, unique=True),
),
("region_name", models.CharField(max_length=200)),
("region_un_code", models.CharField(max_length=3)),
(
"sub_region_name",
models.CharField(blank=True, default="", max_length=200),
),
(
"sub_region_un_code",
models.CharField(blank=True, default="", max_length=3),
),
(
"intermediate_region_name",
models.CharField(blank=True, default="", max_length=200),
),
(
"intermediate_region_un_code",
models.CharField(blank=True, default="", max_length=3),
),
],
options={"abstract": False},
),
migrations.CreateModel(
name="CountryDri",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
("title", models.CharField(blank=True, default="", max_length=150)),
("comment", models.CharField(blank=True, default="", max_length=5000)),
("useful_links", backend_app.fields.JSONField(default=list)),
(
"importance_level",
models.CharField(
choices=[
("-", "normal"),
("+", "important"),
("++", "IMPORTANT"),
],
default="-",
max_length=2,
),
),
(
"countries",
models.ManyToManyField(
related_name="country_dri", to="backend_app.Country"
),
),
],
options={"abstract": False},
),
migrations.CreateModel(
name="CountryScholarship",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
("title", models.CharField(blank=True, default="", max_length=150)),
("comment", models.CharField(blank=True, default="", max_length=5000)),
("useful_links", backend_app.fields.JSONField(default=list)),
(
"importance_level",
models.CharField(
choices=[
("-", "normal"),
("+", "important"),
("++", "IMPORTANT"),
],
default="-",
max_length=2,
),
),
("type", models.CharField(max_length=200)),
(
"other_advantages",
models.CharField(blank=True, default="", max_length=5000),
),
(
"frequency",
models.CharField(
blank=True,
choices=[
("w", "week"),
("m", "month"),
("s", "semester"),
("y", "year"),
("o", "one_shot"),
],
default="m",
max_length=1,
null=True,
),
),
(
"amount_min",
models.DecimalField(
decimal_places=2,
max_digits=20,
null=True,
validators=[django.core.validators.MinValueValidator(0)],
),
),
(
"amount_max",
models.DecimalField(
decimal_places=2,
max_digits=20,
null=True,
validators=[django.core.validators.MinValueValidator(0)],
),
),
(
"countries",
models.ManyToManyField(
related_name="country_scholarships", to="backend_app.Country"
),
),
],
options={"abstract": False},
),
migrations.CreateModel(
name="CountryTaggedItem",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
("title", models.CharField(blank=True, default="", max_length=150)),
("comment", models.CharField(blank=True, default="", max_length=5000)),
("useful_links", backend_app.fields.JSONField(default=list)),
(
"importance_level",
models.CharField(
choices=[
("-", "normal"),
("+", "important"),
("++", "IMPORTANT"),
],
default="-",
max_length=2,
),
),
("custom_content", backend_app.fields.JSONField(default=dict)),
(
"country",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
related_name="country_tagged_items",
to="backend_app.Country",
),
),
],
),
migrations.CreateModel(
name="Currency",
fields=[
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
(
"code",
models.CharField(max_length=3, primary_key=True, serialize=False),
),
("name", models.CharField(max_length=100)),
("symbol", models.CharField(blank=True, default="", max_length=30)),
(
"one_EUR_in_this_currency",
models.DecimalField(
decimal_places=6,
max_digits=20,
validators=[django.core.validators.MinValueValidator(0)],
),
),
],
options={"abstract": False},
),
migrations.CreateModel(
name="Department",
fields=[
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
(
"code",
models.CharField(max_length=6, primary_key=True, serialize=False),
),
("name", models.CharField(max_length=100)),
("active", models.BooleanField()),
],
options={"abstract": False},
),
migrations.CreateModel(
name="ForTestingModeration",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
("aaa", models.CharField(max_length=100)),
],
options={"abstract": False},
),
migrations.CreateModel(
name="ForTestingVersioning",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
("bbb", models.CharField(max_length=100)),
],
options={"abstract": False},
),
migrations.CreateModel(
name="Offer",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
("year", models.PositiveIntegerField(default=2018)),
(
"semester",
models.CharField(
choices=[("a", "autumn"), ("p", "spring")],
default="a",
max_length=2,
),
),
("nb_seats_offered", models.PositiveIntegerField()),
("nb_seats_offered_exchange", models.PositiveIntegerField(null=True)),
(
"nb_seats_offered_double_degree",
models.PositiveIntegerField(null=True),
),
],
options={"abstract": False},
),
migrations.CreateModel(
name="PendingModeration",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("object_id", models.CharField(max_length=100)),
("updated_on", models.DateTimeField(null=True)),
("new_object", backend_app.fields.JSONField(default=dict)),
(
"content_type",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="contenttypes.ContentType",
),
),
],
),
migrations.CreateModel(
name="PreviousDeparture",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
("Utc_departure_id", models.IntegerField()),
("year", models.PositiveIntegerField(default=2018)),
(
"semester",
models.CharField(
choices=[("a", "autumn"), ("p", "spring")],
default="a",
max_length=2,
),
),
("is_anonymous", models.BooleanField()),
("courses", backend_app.fields.JSONField(null=True)),
],
options={"abstract": False},
),
migrations.CreateModel(
name="PreviousDepartureFeedback",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("updated_on", models.DateTimeField(null=True)),
("moderated_on", models.DateTimeField(null=True)),
(
"obj_moderation_level",
models.SmallIntegerField(
default=0,
validators=[
django.core.validators.MinValueValidator(0),
backend_app.models.abstract.my_model.myModel.validate_obj_model_lv,
],
),
),
("is_anonymous", models.BooleanField(default=True)),
("is_public", models.BooleanField(default=False)),
(
"courses_and_courses_feedback",
backend_app.fields.JSONField(default=dict),
),
(
"adequation_comment",
models.CharField(blank=True, default="", max_length=5000),