class Migration(migrations.Migration): dependencies = [ ('casting', '0007_auto_20180307_1314'), ] operations = [ migrations.CreateModel( name='Images', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField( blank=True, null=True, upload_to=casting.models.get_person_photo_path)), ], ), migrations.RemoveField( model_name='person', name='contact_image', ), migrations.AddField( model_name='images', name='person', field=models.ForeignKey(default=None, on_delete=None, to='casting.Person'), ), ]
class Migration(migrations.Migration): dependencies = [ ('casting', '0017_auto_20180309_0018'), ] operations = [ migrations.CreateModel( name='Partner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=250, null=True)), ('photo', models.ImageField( blank=True, null=True, upload_to=casting.models.get_partner_photo_path)), ('partner_url', models.CharField(blank=True, max_length=150)), ], ), migrations.CreateModel( name='Social', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=250, unique=True)), ('social_id', models.CharField(blank=True, max_length=150)), ('social_url', models.CharField(blank=True, max_length=150)), ], ), migrations.AlterField( model_name='person', name='video_url', field=models.CharField(blank=True, max_length=150), ), ]
class Migration(migrations.Migration): dependencies = [ ('casting', '0013_auto_20180308_2023'), ] operations = [ migrations.CreateModel( name='Poster', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=250, null=True)), ('photo', models.ImageField( blank=True, null=True, upload_to=casting.models.get_person_photo_path)), ('about_info', models.TextField(blank=True, max_length=1000)), ], ), migrations.CreateModel( name='Worker', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('position', models.CharField(max_length=250)), ('about_info', models.TextField(blank=True, max_length=1000)), ('avatar', models.ImageField( blank=True, null=True, upload_to=casting.models.get_worker_photo_path)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('casting', '0016_filmphoto'), ] operations = [ migrations.CreateModel( name='PersonPhoto', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('photo', models.ImageField( blank=True, null=True, upload_to=casting.models.get_person_photo_path)), ('person', models.ForeignKey(default=None, on_delete=None, to='casting.Person')), ], ), migrations.RenameModel( old_name='YouVideo', new_name='YoutubeVideo', ), migrations.RemoveField( model_name='personimage', name='person', ), migrations.RenameField( model_name='worker', old_name='avatar', new_name='photo', ), migrations.AlterField( model_name='poster', name='photo', field=models.ImageField( blank=True, null=True, upload_to=casting.models.get_poster_photo_path), ), migrations.DeleteModel(name='PersonImage', ), ]
class Migration(migrations.Migration): dependencies = [ ('casting', '0036_castingrules'), ] operations = [ migrations.CreateModel( name='CastingNews', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=250, unique=True, verbose_name='Title')), ('about_info', models.TextField(blank=True, max_length=8000, verbose_name='About info')), ('link', models.CharField(blank=True, max_length=150, verbose_name='Social url')), ('photo', models.ImageField( blank=True, null=True, upload_to=casting.models.get_news_photo_path, verbose_name='Photo')), ('languages', models.CharField(choices=[('ua', 'Ukrainian'), ('en', 'English')], default=('ua', 'Ukrainian'), max_length=128, verbose_name='languages')), ], options={ 'verbose_name': 'Casting news', 'verbose_name_plural': 'Casting news', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Person', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=70)), ('second_name', models.CharField(max_length=35)), ('email', models.EmailField(max_length=254)), ('phone', models.CharField(default=None, max_length=20, unique=True)), ('age', models.DateField(blank=True, null=True)), ('city', models.CharField(max_length=70)), ('gender', models.CharField(choices=[('male', 'Male'), ('female', 'Female')], max_length=128)), ('prof', models.CharField(choices=[('amateur', 'Amateur'), ('professional', 'Professional')], max_length=128)), ('experience', models.TextField(blank=True, max_length=1000, null=True)), ('grouping', models.BooleanField(default=False)), ('crowd_scene', models.BooleanField(default=False)), ('about_info', models.TextField(blank=True, max_length=1000, null=True)), ('contact_image', models.ImageField( blank=True, null=True, upload_to=casting.models.get_person_photo_path)), ('video_url', models.CharField(max_length=70)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('casting', '0015_auto_20180308_2203'), ] operations = [ migrations.CreateModel( name='FilmPhoto', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=250, null=True)), ('photo', models.ImageField( blank=True, null=True, upload_to=casting.models.get_film_photo_path)), ], ), ]