class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='News', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=256, verbose_name=b'Title')), ('author_Detail', models.CharField(max_length=128, verbose_name=b'Author')), ('date', models.DateTimeField(verbose_name=b'Published Date')), ('m_image', models.ImageField(upload_to=articles.models.autogenerated_Main_Image_Name, verbose_name=b'Main Image ')), ('s_Image', models.ImageField(upload_to=articles.models.autogenerated_Sub_Image_Name, verbose_name=b'Sub Image')), ('body', models.TextField(verbose_name=b'Main Article')), ('likecount', models.TextField(blank=True, editable=False, max_length=1000, verbose_name=b'LikeCount')), ], options={ 'ordering': ['-date'], 'verbose_name_plural': 'News', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=150)), ('content', models.TextField()), ('image', models.ImageField(blank=True, upload_to=articles.models.articles_image_path)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('like_users', models.ManyToManyField(blank=True, related_name='like_articles', to=settings.AUTH_USER_MODEL)), ('recommend_users', models.ManyToManyField(blank=True, related_name='recommend_articles', to=settings.AUTH_USER_MODEL)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content', models.CharField(max_length=200)), ('created_at', models.DateTimeField(auto_now_add=True)), ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='articles.Article')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50)), ('body', models.TextField()), ('image', models.ImageField(blank=True, default='default.png', upload_to=articles.models.get_image_path)), ('last_updated', models.DateTimeField(auto_now=True)), ('featured', models.BooleanField(choices=[(True, 'Active'), (False, 'Inactive')], default=True)), ('author', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20)), ], ), migrations.CreateModel( name='Article', fields=[ ('id', models.UUIDField(default=uuid.UUID('fd85e812-85ff-4279-a670-de5aac6f60ac'), primary_key=True, serialize=False)), ('pub_date', models.DateTimeField(auto_now_add=True)), ('headline', models.CharField(max_length=250)), ('image', models.ImageField(upload_to=articles.models.get_image_directory)), ('body', models.TextField()), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='articles.Category')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0003_category_order'), ] operations = [ migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, max_length=255, null=True)), ('image', models.ImageField(upload_to=articles.models.filename)), ('order', models.IntegerField(blank=True, null=True)), ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='articles.Article')), ], options={ 'ordering': ['order'], }, ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0004_auto_20180924_0218'), ] operations = [ migrations.AddField( model_name='article', name='photo_height', field=models.PositiveIntegerField(blank=True, default=0), ), migrations.AddField( model_name='article', name='photo_width', field=models.PositiveIntegerField(blank=True, default=0), ), migrations.AlterField( model_name='article', name='image', field=models.ImageField(blank=True, height_field='photo_height', null=True, upload_to=articles.models.upload_dir, width_field='photo_width'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('tags', '0001_initial'), ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('is_active', models.BooleanField(default=True)), ('video', models.FileField(blank=True, null=True, storage=cloudinary_storage.storage.VideoMediaCloudinaryStorage(), upload_to=articles.models.upload_video_to, validators=[cloudinary_storage.validators.validate_video])), ('cover', models.ImageField(blank=True, null=True, storage=cloudinary_storage.storage.MediaCloudinaryStorage(), upload_to=articles.models.upload_image_to)), ('title', models.CharField(max_length=255, unique=True)), ('description', models.TextField()), ('content', martor.models.MartorField()), ('keywords', models.CharField(default='プログラミング', max_length=255, verbose_name='記事のキーワード')), ('publish_at', models.DateTimeField(blank=True, null=True)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('related_articles', models.ManyToManyField(blank=True, related_name='_article_related_articles_+', to='articles.Article', verbose_name='related articles')), ('tags', models.ManyToManyField(blank=True, to='tags.Tag')), ], options={ 'ordering': ['-publish_at', '-timestamp', '-updated'], }, ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0001_initial'), ] operations = [ migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField( upload_to=articles.models.article_img_path)), ('explanation', models.CharField(max_length=100)), ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='post_images', to='articles.Post')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0006_auto_20190406_1911'), ] 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, upload_to=articles.models.imagepath, verbose_name='Image')), ('post', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='articles.Post')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0005_auto_20180625_1539'), ] operations = [ migrations.AddField( model_name='image', name='tags', field=models.ManyToManyField(to='articles.Tag'), ), migrations.AddField( model_name='image', name='updated_at', field=models.DateTimeField(auto_now=True, null=True), ), migrations.AlterField( model_name='image', name='image', field=models.ImageField(blank=True, null=True, upload_to=articles.models.filename), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=120)), ('content', models.TextField()), ('image', models.ImageField(blank=True, null=True, upload_to=articles.models.upload_path)), ('last_update', models.DateTimeField(auto_now=True)), ], options={ 'verbose_name': 'Publication', 'verbose_name_plural': 'Publications', }, ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0001_initial'), ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=250, verbose_name='Title')), ('writer', models.CharField(max_length=100, verbose_name='Writer')), ('genre', models.CharField(max_length=50, verbose_name='Genre')), ('published_on', models.DateField(default=django.utils.timezone.now, verbose_name='Published on')), ('modified_on', models.DateField(auto_now=True, verbose_name='')), ('title_image', models.ImageField(blank=True, null=True, upload_to=articles.models.upload_image, verbose_name='Title Image')), ], ), migrations.DeleteModel(name='Blog_page', ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Articles', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=150)), ('content', models.TextField()), ('slug', models.SlugField()), ('date_posted', models.DateTimeField(auto_now_add=True)), ('date_updated', models.DateTimeField(auto_now=True)), ('image', models.ImageField(blank=True, null=True, upload_to=articles.models.upload_dir_path)), ('cropping', image_cropping.fields.ImageRatioField('image', '1000x1000', adapt_rotation=False, allow_fullsize=False, free_crop=False, help_text=None, hide_image_field=False, size_warning=False, verbose_name='cropping')), ('article_choices', models.CharField(choices=[('P', 'Python'), ('D', 'Django'), ('DRF', 'Django Rest Framework'), ('JS', 'Javascript'), ('R', 'React'), ('M', 'MySQL'), ('H', 'HTML'), ('C', 'CSS'), ('RA', 'RELATED_ARTICLES')], default='P', max_length=3)), ], options={ 'verbose_name_plural': 'articles', }, ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0001_initial'), ] operations = [ migrations.AlterField( model_name='post', name='headline_image', field=models.ImageField(blank=True, null=True, upload_to=articles.models.get_upload_path), ), migrations.AlterField( model_name='post', name='post_image', field=models.ImageField(blank=True, null=True, upload_to=articles.models.get_upload_path), ), migrations.AlterField( model_name='post', name='team_a', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='first_team', to='teams.Team'), ), migrations.AlterField( model_name='post', name='team_b', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='second_team', to='teams.Team'), ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0003_auto_20180519_1739'), ] operations = [ migrations.AddField( model_name='article', name='picture', field=models.ImageField( null=True, upload_to=articles.models.Article.upload_path), ), migrations.AlterField( model_name='category', name='picture', field=models.ImageField( null=True, upload_to=articles.models.Category.upload_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('taggit', '0003_taggeditem_add_unique_index'), ('articles', '0002_auto_20200106_1720'), ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=250, verbose_name='Title')), ('writer', models.CharField(max_length=100, verbose_name='Writer')), ('genre', models.CharField(choices=[('adventure', 'Adventure'), ('fiction', 'Fiction'), ('non_fiction', 'Non Fiction'), ('technology', 'Technology'), ('lifestyle', 'Lifestyle')], max_length=20, verbose_name='Genre')), ('published_on', models.DateTimeField(auto_now_add=True, verbose_name='Published on')), ('modified_on', models.DateTimeField(auto_now=True, verbose_name='Modified on')), ('title_image', models.ImageField(blank=True, null=True, upload_to=articles.models.upload_image, verbose_name='Title Image')), ('body', tinymce.models.HTMLField(verbose_name='Content')), ('slug', models.SlugField(blank=True, unique=True, verbose_name='slug')), ('keywords', taggit.managers.TaggableManager( blank=True, help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Keywords')), ], ), migrations.DeleteModel(name='articles', ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0002_article_article'), ] operations = [ migrations.AlterField( model_name='article', name='main_photo', field=models.ImageField(blank=True, upload_to=articles.models.upload_to), ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0001_initial'), ] operations = [ migrations.AddField( model_name='article', name='image', field=models.ImageField(blank=True, null=True, upload_to=articles.models.upload_location), ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0002_auto_20210304_1806'), ] operations = [ migrations.AddField( model_name='article', name='photo', field=models.ImageField(blank=True, null=True, upload_to=articles.models.upload_to), ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0009_article_image'), ] operations = [ migrations.AlterField( model_name='article', name='image', field=models.ImageField(blank=True, null=True, upload_to=articles.models.image_article_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0003_auto_20200609_2349'), ] operations = [ migrations.AddField( model_name='articles', name='image', field=models.ImageField(null=True, upload_to=articles.models.image_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0005_auto_20200624_1513'), ] operations = [ migrations.AlterField( model_name='article', name='image', field=models.ImageField(blank=True, upload_to=articles.models.articles_image_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0013_auto_20200622_2357'), ] operations = [ migrations.AlterField( model_name='article', name='image', field=models.ImageField(blank=True, default=None, upload_to=articles.models.image_article_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='article', options={'ordering': ['-timestamp', 'update']}, ), migrations.RenameField( model_name='article', old_name='body', new_name='content', ), migrations.RemoveField( model_name='article', name='date', ), migrations.AddField( model_name='article', name='height_field', field=models.IntegerField(default=0), ), migrations.AddField( model_name='article', name='image', field=models.ImageField(blank=True, height_field='height_field', null=True, upload_to=articles.models.upload_location, width_field='width_field'), ), migrations.AddField( model_name='article', name='timestamp', field=models.DateTimeField(auto_now_add=True, null=True), ), migrations.AddField( model_name='article', name='update', field=models.DateTimeField(auto_now=True, null=True), ), migrations.AddField( model_name='article', name='width_field', field=models.IntegerField(default=0), ), migrations.AlterField( model_name='article', name='slug', field=models.SlugField(unique=True), ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0012_auto_20200615_0615'), ] operations = [ migrations.AlterField( model_name='article', name='image', field=models.ImageField( null=True, upload_to=articles.models.image_article_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0008_auto_20200607_0554'), ] operations = [ migrations.AddField( model_name='article', name='image', field=models.ImageField( blank=True, upload_to=articles.models.image_article_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0013_auto_20190922_1256'), ] operations = [ migrations.AlterField( model_name='article', name='main_photo', field=models.ImageField(blank=True, default='defaults/backround.jpg', upload_to=articles.models.upload_to), ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0001_initial'), ] operations = [ migrations.AlterField( model_name='imageupload', name='image', field=models.ImageField( upload_to=articles.models.scramble_uploaded_filename, verbose_name='Uploaded Image'), ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0002_article_genre'), ] operations = [ migrations.AddField( model_name='article', name='title_image', field=models.ImageField(blank=True, null=True, upload_to=articles.models.upload_to), ), ]
class Migration(migrations.Migration): dependencies = [ ('articles', '0016_auto_20200623_0009'), ] operations = [ migrations.AlterField( model_name='article', name='image', field=models.ImageField( blank=True, default=django.utils.timezone.now, upload_to=articles.models.image_article_path), preserve_default=False, ), ]