class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('album', '0003_auto_20180331_1027'), ] operations = [ migrations.RenameField( model_name='album', old_name='uploaded_at', new_name='created_at', ), migrations.RemoveField( model_name='album', name='album_name', ), migrations.AddField( model_name='album', name='name', field=models.CharField(blank=True, max_length=100), ), migrations.AddField( model_name='album', name='password', field=models.CharField(default=album.models.password_generator, max_length=6, unique=True), ), migrations.AddField( model_name='album', name='slug', field=models.SlugField(default=album.models.slug_generator, max_length=10, unique=True), ), migrations.AddField( model_name='image', name='publisher', field=models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, related_name='images', to=settings.AUTH_USER_MODEL), preserve_default=False, ), migrations.AddField( model_name='image', name='uploaded_at', field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), preserve_default=False, ), migrations.AlterField( model_name='album', name='publisher', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='album', to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Album', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('album_id', models.CharField(blank=True, max_length=30, null=True, unique=True)), ('title', models.CharField(max_length=255, verbose_name='앨범명')), ('img_cover', models.ImageField( blank=True, upload_to=album.models.dynamic_album_cover_path, verbose_name='커버 이미지')), ('release_date', models.DateField(blank=True, null=True, verbose_name='발매일')), ], ), migrations.CreateModel( name='AlbumLike', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_data', models.DateTimeField(auto_now_add=True)), ('album', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='like_user_info_list', to='album.Album')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Album', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=120, unique=True)), ('description', models.CharField(max_length=300)), ('date', models.DateTimeField(default=django.utils.timezone.now)), ('slug', models.SlugField(allow_unicode=True, unique=True)), ], ), migrations.CreateModel( name='Photo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.ImageField( blank=True, null=True, upload_to=album.models.image_upload_method)), ('date', models.DateTimeField(default=django.utils.timezone.now)), ('album', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='album.Album')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Album', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=250)), ('logo', models.FileField(max_length=250, upload_to='')), ('user', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image1', models.ImageField(default=None, upload_to=album.models.group_based_upload_to_seconder)), ('image2', models.ImageField(default=None, upload_to=album.models.group_based_upload_to_seconder)), ('image3', models.ImageField(default=None, upload_to=album.models.group_based_upload_to_seconder)), ], ), migrations.CreateModel( name='Picture', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.CharField(max_length=250)), ('logo', models.ImageField(upload_to=album.models.group_based_upload_to)), ('dat', models.DateTimeField(auto_now_add=True, null=True)), ('album', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='album.Album')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('album', '0007_auto_20180403_1957'), ] operations = [ migrations.AddField( model_name='image', name='name', field=models.CharField(blank=True, max_length=100), ), migrations.AlterField( model_name='image', name='image', field=models.ImageField(upload_to=album.models.get_image_filename), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Album', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('slug', models.SlugField()), ], options={ 'verbose_name': 'آلبوم', 'verbose_name_plural': 'آلبوم\u200cها', }, ), migrations.CreateModel( name='AlbumImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to=album.models.album_image_path)), ('album', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='album.album')), ], options={ 'verbose_name': 'AlbumImage', 'verbose_name_plural': 'AlbumImages', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='FlimsImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('image', models.ImageField(upload_to=album.models.image_upload_to)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Album', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('album_name', models.CharField(blank=True, max_length=31)), ('uploaded_at', models.DateTimeField(auto_now_add=True)), ('image', models.ImageField(upload_to='album/')), ('publisher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='album', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to=album.models.get_image_filename)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Album', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=128)), ('description', models.TextField(blank=True, null=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='albums', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-timestamp'], }, ), migrations.CreateModel( name='AlbumCredential', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('identifier', models.UUIDField(default=uuid.uuid4, editable=False)), ('password', models.CharField(blank=True, max_length=256, null=True)), ('album', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='album.Album')), ], ), migrations.CreateModel( name='Photo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=128)), ('image', models.ImageField(upload_to=album.models.upload_location)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('album', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='photos', to='album.Album')), ], options={ 'ordering': ['-timestamp'], }, ), ]