Commit 99f8d783 authored by Florent Chehab's avatar Florent Chehab
Browse files

App renamed from rex to backend to be clearer

parent 55e35f6d
# Generated by Django 2.0.3 on 2018-08-20 16:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rex', '0009_semestersdates'),
]
operations = [
migrations.AlterField(
model_name='semestersdates',
name='autumn_begin',
field=models.DateField(blank=True, null=True),
),
migrations.AlterField(
model_name='semestersdates',
name='autumn_end',
field=models.DateField(blank=True, null=True),
),
migrations.AlterField(
model_name='semestersdates',
name='spring_begin',
field=models.DateField(blank=True, null=True),
),
migrations.AlterField(
model_name='semestersdates',
name='spring_end',
field=models.DateField(blank=True, null=True),
),
]
# Generated by Django 2.0.3 on 2018-08-20 17:01
from django.db import migrations, models
import django.db.models.deletion
import rex.models.tools.usefullLinksField
class Migration(migrations.Migration):
dependencies = [
('rex', '0010_auto_20180820_1830'),
]
operations = [
migrations.CreateModel(
name='UniversityInsurance',
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_insurances', serialize=False, to='rex.University')),
],
options={
'abstract': False,
},
),
]
# Generated by Django 2.0.3 on 2018-08-20 17:12
from django.db import migrations
import rex.models.tools.usefullLinksField
class Migration(migrations.Migration):
dependencies = [
('rex', '0011_universityinsurance'),
]
operations = [
migrations.AddField(
model_name='campus',
name='usefull_links',
field=rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links]),
),
]
# Generated by Django 2.0.3 on 2018-08-20 19:48
from django.db import migrations, models
import django.db.models.deletion
import rex.models.tools.usefullLinksField
class Migration(migrations.Migration):
dependencies = [
('rex', '0012_campus_usefull_links'),
]
operations = [
migrations.CreateModel(
name='UniversityCourses',
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_courses', serialize=False, to='rex.University')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='UniversityCulture',
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_culture', serialize=False, to='rex.University')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='UniversityOtherStuff',
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_other_stuff', serialize=False, to='rex.University')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='UniversitySpecialOffer',
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_special_offer', serialize=False, to='rex.University')),
],
options={
'abstract': False,
},
),
]
# Generated by Django 2.0.3 on 2018-08-20 19:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rex', '0013_universitycourses_universityculture_universityotherstuff_universityspecialoffer'),
]
operations = [
migrations.RenameModel(
old_name='SemestersDates',
new_name='UniversitySemestersDates',
),
]
# Generated by Django 2.0.3 on 2018-08-21 08:41
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import rex.models.tools.usefullLinksField
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('rex', '0014_auto_20180820_2153'),
]
operations = [
migrations.CreateModel(
name='File',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('location', models.CharField(max_length=300)),
('description', models.TextField(blank=True, null=True)),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='UniversityPhotos',
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_photos', serialize=False, to='rex.University')),
('photos', models.ManyToManyField(to='rex.File')),
],
options={
'abstract': False,
},
),
]
# Generated by Django 2.0.3 on 2018-08-21 08:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rex', '0015_file_universityphotos'),
]
operations = [
migrations.RemoveField(
model_name='universityphotos',
name='comment',
),
migrations.RemoveField(
model_name='universityphotos',
name='usefull_links',
),
]
# Generated by Django 2.0.3 on 2018-08-21 08:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rex', '0016_auto_20180821_1043'),
]
operations = [
migrations.RemoveField(
model_name='file',
name='user',
),
]
# Generated by Django 2.0.3 on 2018-08-21 09:27
from django.db import migrations, models
import django.db.models.deletion
import rex.utils.friendly_path
class Migration(migrations.Migration):
dependencies = [
('rex', '0017_remove_file_user'),
]
operations = [
migrations.CreateModel(
name='UniversityPhoto',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('photo', models.ImageField(default='path/to/my/default/image.jpg', max_length=250, upload_to=rex.utils.friendly_path.friendly_path('uploads/universities/photos/', 'name'))),
('title', models.CharField(max_length=200)),
('description', models.TextField(blank=True, null=True)),
('university', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='university_photos', to='rex.University')),
],
),
migrations.RemoveField(
model_name='universityphotos',
name='photos',
),
migrations.RemoveField(
model_name='universityphotos',
name='university',
),
migrations.DeleteModel(
name='File',
),
migrations.DeleteModel(
name='UniversityPhotos',
),
migrations.AlterUniqueTogether(
name='universityphoto',
unique_together={('university', 'photo')},
),
]
# Generated by Django 2.0.3 on 2018-08-21 12:22
from django.db import migrations, models
import rex.utils.friendly_path
class Migration(migrations.Migration):
dependencies = [
('rex', '0018_auto_20180821_1127'),
]
operations = [
migrations.AlterField(
model_name='universityphoto',
name='photo',
field=models.ImageField(default='path/to/my/default/image.jpg', max_length=250, upload_to=rex.utils.friendly_path.friendly_path('uploads/universities/photos/', 'title')),
),
]
# Generated by Django 2.0.3 on 2018-08-21 12:51
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import rex.models.tools.usefullLinksField
import rex.utils.friendly_path
class Migration(migrations.Migration):
dependencies = [
('rex', '0019_auto_20180821_1422'),
]
operations = [
migrations.CreateModel(
name='CountryCulture',
fields=[
('comment', models.TextField(blank=True)),
('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),
('country', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='country_culture', serialize=False, to='rex.Country')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='CountryHealthInsurance',
fields=[
('comment', models.TextField(blank=True)),
('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),
('country', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='country_health_insurances', serialize=False, to='rex.Country')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='CountryOtherInsurance',
fields=[
('comment', models.TextField(blank=True)),
('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),
('country', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='country_other_insurances', serialize=False, to='rex.Country')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='CountryOtherStuff',
fields=[
('comment', models.TextField(blank=True)),
('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),
('country', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='country_other_stuff', serialize=False, to='rex.Country')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='CountryPhoto',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('photo', models.ImageField(default='path/to/my/default/image.jpg', max_length=250, upload_to=rex.utils.friendly_path.friendly_path('uploads/universities/photos/', 'title'))),
('title', models.CharField(max_length=200)),
('description', models.TextField(blank=True, null=True)),
],
),
migrations.CreateModel(
name='CountryScholarship',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('comment', models.TextField(blank=True)),
('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),
('type', models.CharField(max_length=200)),
('amount_min', models.DecimalField(decimal_places=2, max_digits=20, validators=[django.core.validators.MinValueValidator(0)])),
('amount_max', models.DecimalField(decimal_places=2, max_digits=20, validators=[django.core.validators.MinValueValidator(0)])),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='CountryTransport',
fields=[
('comment', models.TextField(blank=True)),
('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),
('country', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='country_transport', serialize=False, to='rex.Country')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='CountryVisaAdministrative',
fields=[
('comment', models.TextField(blank=True)),
('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),
('country', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='country_visa_administrative', serialize=False, to='rex.Country')),
],
options={
'abstract': False,
},
),
migrations.AddField(
model_name='countryscholarship',
name='country',
field=models.ManyToManyField(related_name='country_scholarhip', to='rex.Country'),
),
migrations.AddField(
model_name='countryscholarship',
name='currency',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='rex.Currency'),
),
migrations.AddField(
model_name='countryphoto',
name='country',
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='country_photos', to='rex.Country'),
),
migrations.AlterUniqueTogether(
name='countryphoto',
unique_together={('country', 'photo')},
),
]
# Generated by Django 2.0.3 on 2018-08-21 13:06
from django.db import migrations, models
import django.db.models.deletion
import rex.models.tools.usefullLinksField
class Migration(migrations.Migration):
dependencies = [
('rex', '0020_auto_20180821_1451'),
]
operations = [
migrations.CreateModel(
name='CountryTourism',
fields=[
('comment', models.TextField(blank=True)),
('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),
('country', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='country_tourism', serialize=False, to='rex.Country')),
],
options={
'abstract': False,
},
),
]
# Generated by Django 2.0.3 on 2018-08-21 13:16
from django.db import migrations, models
import django.db.models.deletion
import rex.models.tools.usefullLinksField
import rex.utils.friendly_path
class Migration(migrations.Migration):
dependencies = [
('rex', '0021_countrytourism'),
]
operations = [
migrations.CreateModel(
name='CityOtherStuff',
fields=[
('comment', models.TextField(blank=True)),
('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),
('city', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='city_other_stuff', serialize=False, to='rex.City')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='CityPhoto',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('photo', models.ImageField(default='path/to/my/default/image.jpg', max_length=250, upload_to=rex.utils.friendly_path.friendly_path('uploads/universities/photos/', 'title'))),
('title', models.CharField(max_length=200)),
('description', models.TextField(blank=True, null=True)),
],
),
migrations.CreateModel(
name='CityTourism',
fields=[
('comment', models.TextField(blank=True)),
('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),
('city', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='city_tourism', serialize=False, to='rex.City')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='CityTransport',
fields=[
('comment', models.TextField(blank=True)),
('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),
('city', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='city_transport', serialize=False, to='rex.City')),
],
options={
'abstract': False,
},
),
migrations.AddField(
model_name='cityphoto',
name='city',
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='city_photos', to='rex.City'),
),
migrations.AlterUniqueTogether(
name='cityphoto',
unique_together={('city', 'photo')},
),
]
# Generated by Django 2.0.3 on 2018-08-21 13:34
from django.db import migrations, models
import django.db.models.deletion
import rex.models.tools.usefullLinksField
class Migration(migrations.Migration):
dependencies = [
('rex', '0022_auto_20180821_1516'),
]
operations = [
migrations.CreateModel(
name='CampusAccommodation',
fields=[
('comment', models.TextField(blank=True)),
('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),
('campus', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='campus_accomodation', serialize=False, to='rex.Campus')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='CampusCultureAndStudentLife',
fields=[
('comment', models.TextField(blank=True)),
('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),
('campus', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='campus_culture_and_sl', serialize=False, to='rex.Campus')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='CampusOtherStuff',
fields=[
('comment', models.TextField(blank=True)),
('usefull_links', rex.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[rex.models.tools.usefullLinksField.validate_usefull_links])),