# 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')}, ), ]