Commit 7aeec929 authored by Florent Chehab's avatar Florent Chehab
Browse files

Small update on backend texts fields

parent a0e5e515
# Generated by Django 2.0.3 on 2018-09-15 11:41 # Generated by Django 2.0.3 on 2018-09-16 13:31
import backend.fields import backend.fields
import backend.models.abstract.my_model.myModel import backend.models.abstract.my_model.myModel
...@@ -14,8 +14,8 @@ class Migration(migrations.Migration): ...@@ -14,8 +14,8 @@ class Migration(migrations.Migration):
initial = True initial = True
dependencies = [ dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('auth', '0009_alter_user_last_name_max_length'), ('auth', '0009_alter_user_last_name_max_length'),
('contenttypes', '0002_remove_content_type_name'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL), migrations.swappable_dependency(settings.AUTH_USER_MODEL),
] ]
...@@ -27,9 +27,12 @@ class Migration(migrations.Migration): ...@@ -27,9 +27,12 @@ class Migration(migrations.Migration):
('moderated_on', models.DateTimeField(null=True)), ('moderated_on', models.DateTimeField(null=True)),
('updated_on', models.DateTimeField(null=True)), ('updated_on', models.DateTimeField(null=True)),
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('title', models.CharField(default='', max_length=150)),
('comment', models.CharField(default='', max_length=5000)),
('useful_links', backend.fields.JSONField(default=list)),
('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)),
('is_main_campus', models.BooleanField()), ('is_main_campus', models.BooleanField()),
('name', models.CharField(max_length=200, null=True)), ('name', models.CharField(default='', max_length=200)),
('comment', models.TextField(blank=True, null=True)),
('lat', models.DecimalField(decimal_places=6, max_digits=10, validators=[django.core.validators.MinValueValidator(-85.05112878), django.core.validators.MaxValueValidator(85.05112878)])), ('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)])), ('lon', models.DecimalField(decimal_places=6, max_digits=10, validators=[django.core.validators.MinValueValidator(-180), django.core.validators.MaxValueValidator(180)])),
], ],
...@@ -42,7 +45,7 @@ class Migration(migrations.Migration): ...@@ -42,7 +45,7 @@ class Migration(migrations.Migration):
('updated_on', models.DateTimeField(null=True)), ('updated_on', models.DateTimeField(null=True)),
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('title', models.CharField(default='', max_length=150)), ('title', models.CharField(default='', max_length=150)),
('comment', models.TextField(blank=True, default='')), ('comment', models.CharField(default='', max_length=5000)),
('useful_links', backend.fields.JSONField(default=list)), ('useful_links', backend.fields.JSONField(default=list)),
('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)), ('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)),
('custom_content', backend.fields.JSONField(default=dict)), ('custom_content', backend.fields.JSONField(default=dict)),
...@@ -57,8 +60,8 @@ class Migration(migrations.Migration): ...@@ -57,8 +60,8 @@ class Migration(migrations.Migration):
('updated_on', models.DateTimeField(null=True)), ('updated_on', models.DateTimeField(null=True)),
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('name', models.CharField(max_length=200)), ('name', models.CharField(max_length=200)),
('local_name', models.CharField(blank=True, max_length=200, null=True)), ('local_name', models.CharField(default='', max_length=200)),
('area', models.CharField(blank=True, max_length=200, null=True)), ('area', models.CharField(default='', max_length=200)),
], ],
options={ options={
'abstract': False, 'abstract': False,
...@@ -72,7 +75,7 @@ class Migration(migrations.Migration): ...@@ -72,7 +75,7 @@ class Migration(migrations.Migration):
('updated_on', models.DateTimeField(null=True)), ('updated_on', models.DateTimeField(null=True)),
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('title', models.CharField(default='', max_length=150)), ('title', models.CharField(default='', max_length=150)),
('comment', models.TextField(blank=True, default='')), ('comment', models.CharField(default='', max_length=5000)),
('useful_links', backend.fields.JSONField(default=list)), ('useful_links', backend.fields.JSONField(default=list)),
('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)), ('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)),
('custom_content', backend.fields.JSONField(default=dict)), ('custom_content', backend.fields.JSONField(default=dict)),
...@@ -87,13 +90,13 @@ class Migration(migrations.Migration): ...@@ -87,13 +90,13 @@ class Migration(migrations.Migration):
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('name', models.CharField(max_length=200)), ('name', models.CharField(max_length=200)),
('iso_alpha2_code', models.CharField(max_length=2, primary_key=True, serialize=False)), ('iso_alpha2_code', models.CharField(max_length=2, primary_key=True, serialize=False)),
('iso_alpha3_code', models.CharField(max_length=3, unique=True)), ('iso_alpha3_code', models.CharField(default='', max_length=3, unique=True)),
('region_name', models.CharField(max_length=200)), ('region_name', models.CharField(max_length=200)),
('region_un_code', models.CharField(max_length=3)), ('region_un_code', models.CharField(max_length=3)),
('sub_region_name', models.CharField(blank=True, max_length=200, null=True)), ('sub_region_name', models.CharField(default='', max_length=200)),
('sub_region_un_code', models.CharField(blank=True, max_length=3, null=True)), ('sub_region_un_code', models.CharField(default='', max_length=3)),
('intermediate_region_name', models.CharField(blank=True, max_length=200, null=True)), ('intermediate_region_name', models.CharField(default='', max_length=200)),
('intermediate_region_un_code', models.CharField(blank=True, max_length=3, null=True)), ('intermediate_region_un_code', models.CharField(default='', max_length=3)),
], ],
options={ options={
'abstract': False, 'abstract': False,
...@@ -107,7 +110,7 @@ class Migration(migrations.Migration): ...@@ -107,7 +110,7 @@ class Migration(migrations.Migration):
('updated_on', models.DateTimeField(null=True)), ('updated_on', models.DateTimeField(null=True)),
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('title', models.CharField(default='', max_length=150)), ('title', models.CharField(default='', max_length=150)),
('comment', models.TextField(blank=True, default='')), ('comment', models.CharField(default='', max_length=5000)),
('useful_links', backend.fields.JSONField(default=list)), ('useful_links', backend.fields.JSONField(default=list)),
('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)), ('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)),
('countries', models.ManyToManyField(related_name='country_dri', to='backend.Country')), ('countries', models.ManyToManyField(related_name='country_dri', to='backend.Country')),
...@@ -124,13 +127,14 @@ class Migration(migrations.Migration): ...@@ -124,13 +127,14 @@ class Migration(migrations.Migration):
('updated_on', models.DateTimeField(null=True)), ('updated_on', models.DateTimeField(null=True)),
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('title', models.CharField(default='', max_length=150)), ('title', models.CharField(default='', max_length=150)),
('comment', models.TextField(blank=True, default='')), ('comment', models.CharField(default='', max_length=5000)),
('useful_links', backend.fields.JSONField(default=list)), ('useful_links', backend.fields.JSONField(default=list)),
('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)), ('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)),
('type', models.CharField(max_length=200)), ('type', models.CharField(max_length=200)),
('other_advantages', models.CharField(default='', max_length=5000)),
('frequency', models.CharField(choices=[('w', 'week'), ('m', 'month'), ('s', 'semester'), ('y', 'year'), ('o', 'one_shot')], default='m', max_length=1)), ('frequency', models.CharField(choices=[('w', 'week'), ('m', 'month'), ('s', 'semester'), ('y', 'year'), ('o', 'one_shot')], default='m', max_length=1)),
('amount_min', models.DecimalField(decimal_places=2, max_digits=20, validators=[django.core.validators.MinValueValidator(0)])), ('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, 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.Country')), ('countries', models.ManyToManyField(related_name='country_scholarships', to='backend.Country')),
], ],
options={ options={
...@@ -145,7 +149,7 @@ class Migration(migrations.Migration): ...@@ -145,7 +149,7 @@ class Migration(migrations.Migration):
('updated_on', models.DateTimeField(null=True)), ('updated_on', models.DateTimeField(null=True)),
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('title', models.CharField(default='', max_length=150)), ('title', models.CharField(default='', max_length=150)),
('comment', models.TextField(blank=True, default='')), ('comment', models.CharField(default='', max_length=5000)),
('useful_links', backend.fields.JSONField(default=list)), ('useful_links', backend.fields.JSONField(default=list)),
('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)), ('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)),
('custom_content', backend.fields.JSONField(default=dict)), ('custom_content', backend.fields.JSONField(default=dict)),
...@@ -160,7 +164,7 @@ class Migration(migrations.Migration): ...@@ -160,7 +164,7 @@ class Migration(migrations.Migration):
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('code', models.CharField(max_length=3, primary_key=True, serialize=False)), ('code', models.CharField(max_length=3, primary_key=True, serialize=False)),
('name', models.CharField(max_length=100)), ('name', models.CharField(max_length=100)),
('symbol', models.CharField(blank=True, max_length=30, null=True)), ('symbol', models.CharField(default='', max_length=30)),
('one_EUR_in_this_currency', models.DecimalField(decimal_places=6, max_digits=20, validators=[django.core.validators.MinValueValidator(0)])), ('one_EUR_in_this_currency', models.DecimalField(decimal_places=6, max_digits=20, validators=[django.core.validators.MinValueValidator(0)])),
], ],
options={ options={
...@@ -254,8 +258,8 @@ class Migration(migrations.Migration): ...@@ -254,8 +258,8 @@ class Migration(migrations.Migration):
('is_anonymous', models.BooleanField(default=True)), ('is_anonymous', models.BooleanField(default=True)),
('is_public', models.BooleanField(default=False)), ('is_public', models.BooleanField(default=False)),
('courses_and_courses_feedback', backend.fields.JSONField(default=dict)), ('courses_and_courses_feedback', backend.fields.JSONField(default=dict)),
('adequation_comment', models.TextField()), ('adequation_comment', models.CharField(default='', max_length=5000)),
('integration_comment', models.TextField()), ('integration_comment', models.CharField(default='', max_length=5000)),
('adequation_grate', models.PositiveIntegerField(validators=[django.core.validators.MaxValueValidator(20)])), ('adequation_grate', models.PositiveIntegerField(validators=[django.core.validators.MaxValueValidator(20)])),
('integration_grade', models.PositiveIntegerField(validators=[django.core.validators.MaxValueValidator(20)])), ('integration_grade', models.PositiveIntegerField(validators=[django.core.validators.MaxValueValidator(20)])),
('departure', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='backend.PreviousDeparture')), ('departure', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='backend.PreviousDeparture')),
...@@ -274,7 +278,7 @@ class Migration(migrations.Migration): ...@@ -274,7 +278,7 @@ class Migration(migrations.Migration):
('is_anonymous', models.BooleanField(default=True)), ('is_anonymous', models.BooleanField(default=True)),
('is_public', models.BooleanField(default=False)), ('is_public', models.BooleanField(default=False)),
('order_in_list', models.PositiveIntegerField()), ('order_in_list', models.PositiveIntegerField()),
('comment', models.TextField(blank=True, null=True)), ('comment', models.CharField(default='', max_length=5000)),
('grade', models.PositiveIntegerField(null=True, validators=[django.core.validators.MaxValueValidator(20)])), ('grade', models.PositiveIntegerField(null=True, validators=[django.core.validators.MaxValueValidator(20)])),
], ],
), ),
...@@ -338,9 +342,9 @@ class Migration(migrations.Migration): ...@@ -338,9 +342,9 @@ class Migration(migrations.Migration):
('updated_on', models.DateTimeField(null=True)), ('updated_on', models.DateTimeField(null=True)),
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('name', models.CharField(max_length=200)), ('name', models.CharField(max_length=200)),
('acronym', models.CharField(blank=True, max_length=20, null=True)), ('acronym', models.CharField(default='', max_length=20)),
('logo', models.URLField(blank=True, null=True, validators=[backend.models.university.university.validate_extension_django])), ('logo', models.URLField(default='', validators=[backend.models.university.university.validate_extension_django])),
('website', models.URLField(blank=True, max_length=300, null=True)), ('website', models.URLField(default='', max_length=300)),
('utc_id', models.IntegerField(unique=True)), ('utc_id', models.IntegerField(unique=True)),
], ],
options={ options={
...@@ -355,7 +359,7 @@ class Migration(migrations.Migration): ...@@ -355,7 +359,7 @@ class Migration(migrations.Migration):
('updated_on', models.DateTimeField(null=True)), ('updated_on', models.DateTimeField(null=True)),
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('title', models.CharField(default='', max_length=150)), ('title', models.CharField(default='', max_length=150)),
('comment', models.TextField(blank=True, default='')), ('comment', models.CharField(default='', max_length=5000)),
('useful_links', backend.fields.JSONField(default=list)), ('useful_links', backend.fields.JSONField(default=list)),
('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)), ('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)),
], ],
...@@ -371,14 +375,15 @@ class Migration(migrations.Migration): ...@@ -371,14 +375,15 @@ class Migration(migrations.Migration):
('updated_on', models.DateTimeField(null=True)), ('updated_on', models.DateTimeField(null=True)),
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('title', models.CharField(default='', max_length=150)), ('title', models.CharField(default='', max_length=150)),
('comment', models.TextField(blank=True, default='')), ('comment', models.CharField(default='', max_length=5000)),
('useful_links', backend.fields.JSONField(default=list)), ('useful_links', backend.fields.JSONField(default=list)),
('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)), ('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)),
('type', models.CharField(max_length=200)), ('type', models.CharField(max_length=200)),
('other_advantages', models.CharField(default='', max_length=5000)),
('frequency', models.CharField(choices=[('w', 'week'), ('m', 'month'), ('s', 'semester'), ('y', 'year'), ('o', 'one_shot')], default='m', max_length=1)), ('frequency', models.CharField(choices=[('w', 'week'), ('m', 'month'), ('s', 'semester'), ('y', 'year'), ('o', 'one_shot')], default='m', max_length=1)),
('amount_min', models.DecimalField(decimal_places=2, max_digits=20, validators=[django.core.validators.MinValueValidator(0)])), ('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, validators=[django.core.validators.MinValueValidator(0)])), ('amount_max', models.DecimalField(decimal_places=2, max_digits=20, null=True, validators=[django.core.validators.MinValueValidator(0)])),
('currency', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='backend.Currency')), ('currency', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='backend.Currency')),
], ],
options={ options={
'abstract': False, 'abstract': False,
...@@ -392,7 +397,7 @@ class Migration(migrations.Migration): ...@@ -392,7 +397,7 @@ class Migration(migrations.Migration):
('updated_on', models.DateTimeField(null=True)), ('updated_on', models.DateTimeField(null=True)),
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('title', models.CharField(default='', max_length=150)), ('title', models.CharField(default='', max_length=150)),
('comment', models.TextField(blank=True, default='')), ('comment', models.CharField(default='', max_length=5000)),
('useful_links', backend.fields.JSONField(default=list)), ('useful_links', backend.fields.JSONField(default=list)),
('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)), ('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)),
('custom_content', backend.fields.JSONField(default=dict)), ('custom_content', backend.fields.JSONField(default=dict)),
...@@ -421,7 +426,7 @@ class Migration(migrations.Migration): ...@@ -421,7 +426,7 @@ class Migration(migrations.Migration):
('updated_on', models.DateTimeField(null=True)), ('updated_on', models.DateTimeField(null=True)),
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('title', models.CharField(default='', max_length=150)), ('title', models.CharField(default='', max_length=150)),
('comment', models.TextField(blank=True, default='')), ('comment', models.CharField(default='', max_length=5000)),
('useful_links', backend.fields.JSONField(default=list)), ('useful_links', backend.fields.JSONField(default=list)),
('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)), ('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)),
('university', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='university_info', serialize=False, to='backend.University')), ('university', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='university_info', serialize=False, to='backend.University')),
...@@ -439,7 +444,7 @@ class Migration(migrations.Migration): ...@@ -439,7 +444,7 @@ class Migration(migrations.Migration):
('updated_on', models.DateTimeField(null=True)), ('updated_on', models.DateTimeField(null=True)),
('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])), ('obj_moderation_level', models.SmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), backend.models.abstract.my_model.myModel.validate_obj_model_lv])),
('title', models.CharField(default='', max_length=150)), ('title', models.CharField(default='', max_length=150)),
('comment', models.TextField(blank=True, default='')), ('comment', models.CharField(default='', max_length=5000)),
('useful_links', backend.fields.JSONField(default=list)), ('useful_links', backend.fields.JSONField(default=list)),
('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)), ('importance_level', models.CharField(choices=[('-', 'normal'), ('+', 'important'), ('++', 'IMPORTANT')], default='-', max_length=2)),
('university', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='university_semesters_dates', serialize=False, to='backend.University')), ('university', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='university_semesters_dates', serialize=False, to='backend.University')),
...@@ -737,7 +742,7 @@ class Migration(migrations.Migration): ...@@ -737,7 +742,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='countryscholarship', model_name='countryscholarship',
name='currency', name='currency',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='backend.Currency'), field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='backend.Currency'),
), ),
migrations.AddField( migrations.AddField(
model_name='countryscholarship', model_name='countryscholarship',
......
# Generated by Django 2.0.3 on 2018-09-16 09:54
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('backend', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='countryscholarship',
name='other_advantages',
field=models.TextField(blank=True, default=''),
),
migrations.AddField(
model_name='universityscholarship',
name='other_advantages',
field=models.TextField(blank=True, default=''),
),
migrations.AlterField(
model_name='countryscholarship',
name='amount_max',
field=models.DecimalField(decimal_places=2, max_digits=20, null=True, validators=[django.core.validators.MinValueValidator(0)]),
),
migrations.AlterField(
model_name='countryscholarship',
name='amount_min',
field=models.DecimalField(decimal_places=2, max_digits=20, null=True, validators=[django.core.validators.MinValueValidator(0)]),
),
migrations.AlterField(
model_name='countryscholarship',
name='currency',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='backend.Currency'),
),
migrations.AlterField(
model_name='universityscholarship',
name='amount_max',
field=models.DecimalField(decimal_places=2, max_digits=20, null=True, validators=[django.core.validators.MinValueValidator(0)]),
),
migrations.AlterField(
model_name='universityscholarship',
name='amount_min',
field=models.DecimalField(decimal_places=2, max_digits=20, null=True, validators=[django.core.validators.MinValueValidator(0)]),
),
migrations.AlterField(
model_name='universityscholarship',
name='currency',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='backend.Currency'),
),
]
# Generated by Django 2.0.3 on 2018-09-16 13:55
import backend.models.university.university
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='campus',
name='comment',
field=models.CharField(blank=True, default='', max_length=5000),
),
migrations.AlterField(
model_name='campus',
name='name',
field=models.CharField(blank=True, default='', max_length=200),
),
migrations.AlterField(
model_name='campus',
name='title',
field=models.CharField(blank=True, default='', max_length=150),
),
migrations.AlterField(
model_name='campustaggeditem',
name='comment',
field=models.CharField(blank=True, default='', max_length=5000),
),
migrations.AlterField(
model_name='campustaggeditem',
name='title',
field=models.CharField(blank=True, default='', max_length=150),
),
migrations.AlterField(
model_name='city',
name='area',
field=models.CharField(blank=True, default='', max_length=200),
),
migrations.AlterField(
model_name='city',
name='local_name',
field=models.CharField(blank=True, default='', max_length=200),
),
migrations.AlterField(
model_name='citytaggeditem',
name='comment',
field=models.CharField(blank=True, default='', max_length=5000),
),
migrations.AlterField(
model_name='citytaggeditem',
name='title',
field=models.CharField(blank=True, default='', max_length=150),
),
migrations.AlterField(
model_name='country',
name='intermediate_region_name',
field=models.CharField(blank=True, default='', max_length=200),
),
migrations.AlterField(
model_name='country',
name='intermediate_region_un_code',
field=models.CharField(blank=True, default='', max_length=3),
),
migrations.AlterField(
model_name='country',
name='iso_alpha3_code',
field=models.CharField(blank=True, default='', max_length=3, unique=True),
),
migrations.AlterField(
model_name='country',
name='sub_region_name',
field=models.CharField(blank=True, default='', max_length=200),
),
migrations.AlterField(
model_name='country',
name='sub_region_un_code',
field=models.CharField(blank=True, default='', max_length=3),
),
migrations.AlterField(
model_name='countrydri',
name='comment',
field=models.CharField(blank=True, default='', max_length=5000),
),
migrations.AlterField(
model_name='countrydri',
name='title',
field=models.CharField(blank=True, default='', max_length=150),
),
migrations.AlterField(
model_name='countryscholarship',
name='comment',
field=models.CharField(blank=True, default='', max_length=5000),
),
migrations.AlterField(
model_name='countryscholarship',
name='other_advantages',
field=models.CharField(blank=True, default='', max_length=5000),
),
migrations.AlterField(
model_name='countryscholarship',
name='title',
field=models.CharField(blank=True, default='', max_length=150),
),
migrations.AlterField(
model_name='countrytaggeditem',
name='comment',
field=models.CharField(blank=True, default='', max_length=5000),
),
migrations.AlterField(
model_name='countrytaggeditem',
name='title',
field=models.CharField(blank=True, default='', max_length=150),
),
migrations.AlterField(
model_name='currency',
name='symbol',
field=models.CharField(blank=True, default='', max_length=30),
),
migrations.AlterField(
model_name='previousdeparturefeedback',
name='adequation_comment',
field=models.CharField(blank=True, default='', max_length=5000),
),
migrations.AlterField(
model_name='previousdeparturefeedback',
name='integration_comment',
field=models.CharField(blank=True, default='', max_length=5000),
),
migrations.AlterField(
model_name='recommendation',
name='comment',
field=models.CharField(blank=True, default='', max_length=5000),
),
migrations.AlterField(
model_name='university',
name='acronym',
field=models.CharField(blank=True, default='', max_length=20),
),
migrations.AlterField(
model_name='university',
name='logo',
field=models.URLField(blank=True, default='', validators=[backend.models.university.university.validate_extension_django]),
),
migrations.AlterField(
model_name='university',
name='website',
field=models.URLField(blank=True, default='', max_length=300),
),
migrations.AlterField(
model_name='universitydri',
name='comment'