class Migration(migrations.Migration): dependencies = [ ('blog', '0005_auto_20170511_1537'), ] operations = [ migrations.AddField( model_name='theme', name='height_field', field=models.IntegerField(default=0), ), migrations.AddField( model_name='theme', name='image', field=models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, verbose_name='Изображение', width_field='width_field'), ), migrations.AddField( model_name='theme', name='slug', field=models.SlugField(default='', unique=True), preserve_default=False, ), migrations.AddField( model_name='theme', name='width_field', field=models.IntegerField(default=0), ), migrations.AddField( model_name='unit', name='height_field', field=models.IntegerField(default=0), ), migrations.AddField( model_name='unit', name='image', field=models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, verbose_name='Изображение', width_field='width_field'), ), migrations.AddField( model_name='unit', name='slug', field=models.SlugField(default='', unique=True), preserve_default=False, ), migrations.AddField( model_name='unit', name='width_field', field=models.IntegerField(default=0), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='BlogModel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('blog_title', models.CharField(max_length=500)), ('blog_description', models.TextField()), ('blog_image', models.ImageField( upload_to=blog.models.BlogModel.upload_image)), ('writer_name', models.CharField(max_length=200)), ('blog_status', models.CharField(choices=[('0', 'Hold'), ('1', 'Publish')], max_length=50)), ('blog_date', models.DateTimeField(auto_now_add=True)), ('like_count', models.IntegerField()), ('comment_count', models.IntegerField()), ('created_date', models.DateTimeField(auto_now_add=True)), ('modified_date', models.DateTimeField(auto_now=True)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0003_auto_20210217_1052'), ] operations = [ migrations.AddField( model_name='blogpost', name='image_height', field=models.IntegerField(default=1), preserve_default=False, ), migrations.AddField( model_name='blogpost', name='image_width', field=models.IntegerField(default=1), preserve_default=False, ), migrations.AlterField( model_name='blogpost', name='image', field=models.ImageField( blank=True, height_field='image_height', upload_to=blog.models.BlogPost.blog_image_path, width_field='image_width'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('categories', models.CharField(max_length=25)), ('title', models.CharField(max_length=180)), ('email', models.EmailField(max_length=254)), ('content', markdownx.models.MarkdownxField()), ('draft', models.BooleanField(default=True)), ('publish', models.DateField(auto_now=True)), ('date_added', models.DateTimeField(auto_now_add=True)), ('date_updated', models.DateTimeField(auto_now=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('height_field', models.IntegerField(default=0)), ('width_field', models.IntegerField(default=0)), ('image', models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, width_field='width_field')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0003_auto_20160527_0212'), ] operations = [ migrations.AddField( model_name='post', name='height_field', field=models.IntegerField(default=0), ), migrations.AddField( model_name='post', name='width_field', field=models.IntegerField(default=0), ), migrations.AlterField( model_name='post', name='image', field=models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, width_field='width_field'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=35)), ('content', models.TextField(max_length=500)), ('heart', models.IntegerField(default=0)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('image', models.ImageField(upload_to=blog.models.tag_upload_path)), ('slug', models.SlugField(max_length=150, unique=True)), ('highlights', models.IntegerField(default=0)), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=150)), ('description', models.TextField(default='', max_length=500)), ('slug', models.SlugField(max_length=150, unique=True)), ('image', models.ImageField(upload_to=blog.models.post_upload_path)), ('content', models.TextField(default='', max_length=65535)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('highlights', models.IntegerField(default=0)), ('heart', models.IntegerField(default=0)), ('tag', models.ManyToManyField(related_name='posts', to='blog.Tag')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=120)), ('slug', models.SlugField(unique=True)), ('image', models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, width_field='width_field')), ('height_field', models.IntegerField(default=0)), ('width_field', models.IntegerField(default=0)), ('content', models.TextField()), ('timestamp', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ], options={ 'ordering': ['-timestamp', 'updated'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=120)), ('slug', models.SlugField(unique=True)), ('image', models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, width_field='width_field')), ('width_field', models.IntegerField(default=0)), ('height_field', models.IntegerField(default=0)), ('context', models.TextField()), ('draft', models.BooleanField(default=False)), ('publish', models.DateField()), ('read_time', models.IntegerField(default=0)), ('updated', models.DateTimeField(auto_now=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('owner', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='post', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='BlogData', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=20)), ('slug', models.SlugField(unique=True)), ('image', models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, width_field='width_field')), ('height_field', models.IntegerField(default=0)), ('width_field', models.IntegerField(default=0)), ('content', models.TextField()), ('time_stamp', models.DateTimeField(auto_now_add=True)), ('user', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-id', '-time_stamp'], }, ), ]
class Migration(migrations.Migration): dependencies = [ ('wagtaildocs', '0007_merge'), ('wagtailimages', '0019_delete_filter'), ('wagtailcore', '0040_page_draft_title'), ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( name='HomePage', fields=[ ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ('body', wagtail.wagtailcore.fields.StreamField((('h2', wagtail.wagtailcore.blocks.CharBlock(classname='title', icon='title')), ('h3', wagtail.wagtailcore.blocks.CharBlock(classname='title', icon='title')), ('h4', wagtail.wagtailcore.blocks.CharBlock(classname='title', icon='title')), ('intro', wagtail.wagtailcore.blocks.RichTextBlock(icon='pilcrow')), ('paragraph', wagtail.wagtailcore.blocks.RichTextBlock(icon='pilcrow')), ('aligned_image', wagtail.wagtailcore.blocks.StructBlock((('image', wagtail.wagtailimages.blocks.ImageChooserBlock()), ('caption', wagtail.wagtailcore.blocks.RichTextBlock()), ('alignment', blog.models.ImageFormatChoiceBlock())), icon='image', label='Aligned image')), ('pullquote', wagtail.wagtailcore.blocks.StructBlock((('quote', wagtail.wagtailcore.blocks.TextBlock('quote title')), ('attribution', wagtail.wagtailcore.blocks.CharBlock())))), ('aligned_html', wagtail.wagtailcore.blocks.StructBlock((('html', wagtail.wagtailcore.blocks.RawHTMLBlock()), ('alignment', blog.models.HTMLAlignmentChoiceBlock())), icon='code', label='Raw HTML')), ('document', wagtail.wagtaildocs.blocks.DocumentChooserBlock(icon='doc-full-inverse'))))), ], options={ 'verbose_name': 'Homepage', }, bases=('wagtailcore.page',), ), migrations.CreateModel( name='HomePageCarouselItem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sort_order', models.IntegerField(blank=True, editable=False, null=True)), ('link_external', models.URLField(blank=True, verbose_name='External link')), ('embed_url', models.URLField(blank=True, verbose_name='Embed URL')), ('caption', models.CharField(blank=True, max_length=255)), ('image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')), ('link_document', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtaildocs.Document')), ('link_page', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtailcore.Page')), ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='carousel_items', to='blog.HomePage')), ], options={ 'abstract': False, 'ordering': ['sort_order'], }, ), migrations.CreateModel( name='HomePageRelatedLink', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sort_order', models.IntegerField(blank=True, editable=False, null=True)), ('link_external', models.URLField(blank=True, verbose_name='External link')), ('title', models.CharField(help_text='Link title', max_length=255)), ('link_document', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtaildocs.Document')), ('link_page', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtailcore.Page')), ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='related_links', to='blog.HomePage')), ], options={ 'abstract': False, 'ordering': ['sort_order'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='BlogPost', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50)), ('body', models.TextField(max_length=5000)), ('image', models.ImageField(upload_to=blog.models.upload_location)), ('date_published', models.DateTimeField(auto_now_add=True, verbose_name='date_publishd')), ('date_updated', models.DateTimeField(auto_now=True, verbose_name='date_updated')), ('slug', models.SlugField(blank=True, unique=True)), ('upvote', models.IntegerField(default=0)), ('downvote', models.IntegerField(default=0)), ('author', 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')), ('body', models.TextField(max_length=5000)), ('date_published', models.DateTimeField(auto_now_add=True, verbose_name='date_publishd')), ('date_updated', models.DateTimeField(auto_now=True, verbose_name='date_updated')), ('upvote', models.IntegerField(default=0)), ('downvote', models.IntegerField(default=0)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('blog', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.BlogPost')), ], ), migrations.CreateModel( name='PostVote', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('vote_type', models.CharField(choices=[('U', 'UpVote'), ('D', 'DownVote')], max_length=1)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('parent_post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.BlogPost')), ], ), migrations.CreateModel( name='CommentVote', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('vote_type', models.CharField(choices=[('U', 'UpVote'), ('D', 'DownVote')], max_length=1)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('parent_comment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.Comment')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Course', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, verbose_name='Название курса')), ('slug', models.SlugField(blank=True, unique=True)), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, verbose_name='Название поста')), ('slug', models.SlugField(blank=True, unique=True)), ('image', models.ImageField(height_field='height_field', upload_to=blog.models.upload_location, verbose_name='Фото продукта', width_field='width_field')), ('height_field', models.IntegerField(default=0)), ('width_field', models.IntegerField(default=0)), ('content', models.TextField()), ('published_date', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Опубликовано')), ('views', models.IntegerField(default=0, verbose_name='Просмотры')), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='posts', to='blog.Course')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('contenttypes', '0002_remove_content_type_name'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='BlogType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('type_name', models.CharField(max_length=15)), ], ), migrations.CreateModel( name='ReadNum', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('read_num', models.IntegerField(default=0)), ('object_id', models.PositiveIntegerField()), ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='contenttypes.ContentType')), ], ), migrations.CreateModel( name='LikeNum', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('like_num', models.IntegerField(default=0)), ('object_id', models.PositiveIntegerField()), ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='contenttypes.ContentType')), ], ), migrations.CreateModel( name='Blog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50)), ('content', ckeditor_uploader.fields.RichTextUploadingField()), ('created_time', models.DateTimeField()), ('last_updated_time', models.DateTimeField(auto_now=True)), ('create_month', models.CharField(default='May', max_length=50)), ('img_url', models.ImageField(blank=True, upload_to='images')), ('author', models.ForeignKey(default=None, on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL)), ('blog_type', models.ForeignKey(default=None, on_delete=django.db.models.deletion.DO_NOTHING, to='blog.BlogType')), ], options={ 'ordering': ['-created_time'], }, bases=(models.Model, blog.models.ReadNumExpandMethod, blog.models.LikeNumExpandMethod), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Answer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content', models.TextField(validators=[blog.models.validate_even])), ('date_posted', models.DateTimeField(default=django.utils.timezone.now)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Avote', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('votes', models.IntegerField(default=0)), ('answer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.Answer')), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100, validators=[blog.models.validate_even])), ('content', models.TextField(validators=[blog.models.validate_even])), ('date_posted', models.DateTimeField(default=django.utils.timezone.now)), ('read', models.BooleanField(default=0)), ('tags', models.TextField(null=True)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Qvote', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('votes', models.IntegerField(default=0)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.Post')), ], ), migrations.AddField( model_name='answer', name='question', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.Post'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('author', models.CharField(max_length=200)), ('comment', models.TextField(default=None)), ('created_time', models.DateTimeField(default=datetime.datetime(2017, 1, 4, 18, 22, 31, 82203, tzinfo=utc))), ('approved_comment', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True)), ], options={ 'ordering': ['-timestamp'], }, ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=200)), ('text', models.TextField()), ('created_date', models.DateTimeField(default=django.utils.timezone.now)), ('published_date', models.DateTimeField(blank=True, null=True)), ('image', models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, width_field='width_field')), ('height_field', models.IntegerField(default=0, null=True)), ('width_field', models.IntegerField(default=0, null=True)), ('is_favorite', models.BooleanField(default=False)), ('word_count', models.IntegerField(null=True)), ('read_time', models.IntegerField(default=0)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='comment', name='post', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='blog.Post'), ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0007_auto_20170511_1733'), ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=120, verbose_name='Заголовок')), ('slug', models.SlugField(unique=True)), ('image', models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, verbose_name='Изображение', width_field='width_field')), ('height_field', models.IntegerField(default=0)), ('width_field', models.IntegerField(default=0)), ('content', models.TextField(verbose_name='Содержание')), ('draft', models.BooleanField(default=False, verbose_name='Черновик')), ('publish', models.DateField(verbose_name='Дата публикации')), ('timestamp', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('user', models.ForeignKey(blank=True, default=1, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-timestamp', 'updated'], }, ), migrations.RemoveField( model_name='theme', name='unit', ), migrations.DeleteModel(name='Theme', ), migrations.DeleteModel(name='Unit', ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='BlogInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('headline', models.CharField(blank=True, max_length=1000, null=True)), ('preview_points', models.TextField(blank=True, null=True)), ('date_time', models.DateTimeField(auto_now_add=True, null=True)), ('last_updated', models.DateTimeField(auto_now=True, null=True)), ('age_restricted', models.BooleanField(default=False)), ('content', models.TextField(blank=True, null=True)), ('image', models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.get_location, width_field='width_field')), ('height_field', models.IntegerField(default=0)), ('width_field', models.IntegerField(default=0)), ('slug', models.SlugField(blank=True, null=True)), ('genre', models.CharField(choices=[('INSPIRATIONAL', 'Inspirational'), ('EDUCATIONAL', 'Educational'), ('ENTERTAINMENT', 'Entertainment'), ('NEWS', 'News'), ('ARINDHAL', 'Arindhal')], default='NEWS', max_length=20)), ('likes', models.IntegerField(default=0)), ('use_editor', models.BooleanField(default=False)), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('navigation', '0001_initial'), ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('article_title', models.CharField(max_length=50, unique=True, verbose_name='Назва статті')), ('article_text', models.TextField(max_length=5000, verbose_name='Текст статті')), ('article_date', models.DateTimeField(auto_now_add=True, verbose_name='Дата створення')), ('article_update', models.DateTimeField(auto_now=True, verbose_name='Дата оновлення')), ('article_likes', models.IntegerField(default=0, verbose_name='Подобається')), ('article_image', models.ImageField(blank=True, height_field='height_field', help_text='Зображення до статті', null=True, upload_to=blog.models.upload_location, verbose_name='Картинки', width_field='width_field')), ('width_field', models.IntegerField(default=0, verbose_name='Ширина картинки в пікселях')), ('height_field', models.IntegerField(default=0, verbose_name='Висота картинки в пікселях')), ('article_slug', models.SlugField(blank='', unique='', verbose_name='Ім`я статті транслітом')), ('article_category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='articles', to='navigation.Category', verbose_name='Категорія')), ], options={ 'verbose_name': 'Стаття', 'verbose_name_plural': 'Статті', 'db_table': 'articles', }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('tag_title', models.CharField(max_length=50, verbose_name='Назва тега')), ('tag_name', models.SlugField(verbose_name='Ім`я тега транслітом')), ], options={ 'verbose_name': 'Тег', 'verbose_name_plural': 'Тегі', 'db_table': 'tags', }, ), migrations.AddField( model_name='article', name='article_tag', field=models.ManyToManyField(related_name='articles', to='blog.Tag', verbose_name='Тегі'), ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0006_auto_20190201_0301'), ] operations = [ migrations.AddField( model_name='post', name='lnglat', field=models.CharField(blank=True, help_text='경도, 위도 포맷으로 입력', max_length=50, validators=[blog.models.lnglat_validator]), ), migrations.AddField( model_name='post', name='tags', field=models.CharField(blank=True, max_length=100), ), migrations.AddField( model_name='post', name='test_field', field=models.IntegerField(default=10), ), migrations.AlterField( model_name='post', name='content', field=models.TextField(help_text='Markdown 문법을 써주세요.'), ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0013_auto_20180808_1535'), ] operations = [ migrations.RemoveField( model_name='post', name='status', ), migrations.RemoveField( model_name='post', name='tag_set', ), migrations.AlterField( model_name='post', name='lnglat', field=models.CharField(blank=True, max_length=50, validators=[blog.models.lnglat_validator]), ), migrations.AlterField( model_name='post', name='rating', field=models.IntegerField( help_text='How was my blog? Please evaluate!', validators=[ django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(5) ]), ), migrations.DeleteModel(name='Tag', ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0016_article_visits'), ] operations = [ migrations.AddField( model_name='article', name='content', field=froala_editor.fields.FroalaField(default=''), preserve_default=False, ), migrations.AlterField( model_name='article', name='cover_image', field=models.ImageField( blank='True', upload_to=blog.models.Article.get_upload_path, verbose_name='Заглавная картинка'), ), migrations.AlterField( model_name='article', name='visits', field=models.IntegerField(default=0, verbose_name='Просмотров'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('picture', models.FileField(blank=True, upload_to=blog.models.user_media_path)), ('likes', models.IntegerField(default=0)), ('pub_date', models.DateTimeField(auto_now_add=True)), ('last_updated', models.DateTimeField(auto_now=True)), ('content', models.TextField()), ('title', models.CharField(max_length=50)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('wishlist', models.ManyToManyField(blank=True, related_name='post_wishlist', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='PostModel', fields=[ ('id', models.BigAutoField(primary_key=True, serialize=False)), ('active', models.BooleanField(default=True)), ('title', models.CharField(error_messages={'required': 'Please enter your title', 'unique': 'This title is not unique, please try again.'}, help_text='Must be a unique title.', max_length=240, unique=True, verbose_name='Post title')), ('slug', models.SlugField(blank=True, null=True)), ('content', models.TextField(blank=True, null=True)), ('publish', models.CharField(choices=[('draft', 'Draft'), ('publish', 'Publish'), ('private', 'Private')], default='draft', max_length=120)), ('view_count', models.IntegerField(default=0)), ('publish_date', models.DateField(default=django.utils.timezone.now)), ('author_email', models.EmailField(blank=True, max_length=240, null=True, validators=[blog.models.validate_Email])), ('updated', models.DateTimeField(auto_now=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ], options={ 'verbose_name': 'Post', 'verbose_name_plural': 'Posts', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30)), ('password', models.CharField(max_length=256)), ('email', models.CharField(max_length=64, unique=True)), ('description', models.CharField(max_length=1024, null=True)), ('is_active', models.BooleanField(default=False)), ('is_admin', models.BooleanField(default=False)), ], ), migrations.CreateModel( name='Verify', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('verify_text', models.CharField(default=blog.models.get_verify_key, max_length=256)), ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.User')), ], ), migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=256)), ('text', models.TextField(default='')), ('ref_article_id', models.IntegerField(default=None, null=True)), ('creation_time', models.DateTimeField(auto_now_add=True)), ('last_modify_time', models.DateTimeField(auto_now=True)), ('creation_user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.User')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AddField( model_name='post', name='content_two', field=models.CharField(default='', max_length=50, verbose_name='Новость 2'), preserve_default=False, ), migrations.AddField( model_name='post', name='height_field', field=models.IntegerField(default=0), ), migrations.AddField( model_name='post', name='image_one', field=models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, verbose_name='Фото', width_field='width_field'), ), migrations.AddField( model_name='post', name='image_two', field=models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, verbose_name='Фото2', width_field='width_field'), ), migrations.AddField( model_name='post', name='width_field', field=models.IntegerField(default=0), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('age', models.IntegerField(blank=True, null=True)), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('sign_up_notification', models.BooleanField(default=False, help_text='Receive email alerts for new signups on the site')), ('login_fail_notification', models.BooleanField(default=False, help_text='Receive email notifications about site authorization failures')), ('sub_on_comments', models.BooleanField(default=True, help_text='Receive email notifications about new comments on site')), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', blog.models.UserManager()), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255)), ('slug', models.SlugField(blank=True, unique=True)), ('content', ckeditor_uploader.fields.RichTextUploadingField(blank=True, null=True)), ('description', models.TextField(blank=True, max_length=300, null=True)), ('published', models.BooleanField(default=True)), ('created', models.DateTimeField(auto_now_add=True)), ('attachment', models.ImageField(upload_to='')), ('delay', models.BooleanField(default=False)), ('delay_time', models.DateTimeField(blank=True, null=True)), ('owner', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['published'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Komentar', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nama', models.CharField(max_length=200)), ('email', models.EmailField(max_length=200, unique=True)), ('website', models.CharField(max_length=200)), ('konten', models.TextField()), ('publish_date', models.DateField(default=django.utils.timezone.now)), ('published', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='PostModel', fields=[ ('id', models.BigAutoField(primary_key=True, serialize=False)), ('active', models.BooleanField(default=True)), ('title', models.CharField(error_messages={ 'blank': 'This field is not full, please try again.', 'unique': 'This title is not unique, please try again.' }, help_text='Must be a unique title.', max_length=240, unique=True, verbose_name='Post title')), ('sub_tittle', models.TextField()), ('slug', models.SlugField(blank=True, null=True)), ('post_thumbnail', models.ImageField(default='blog.jpg', upload_to=blog.models.path_and_rename)), ('content', ckeditor.fields.RichTextField(blank=True, null=True)), ('view_count', models.IntegerField(default=0)), ('publish_date', models.DateField(default=django.utils.timezone.now)), ('author_email', models.EmailField(blank=True, max_length=240, null=True)), ('updated', models.DateTimeField(auto_now=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('published', models.BooleanField(default=True)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('author', models.CharField(max_length=200)), ('text', models.TextField()), ('created_date', models.DateTimeField(default=django.utils.timezone.now)), ('approved_comment', models.BooleanField(default=False)), ], ), migrations.AddField( model_name='post', name='height_field', field=models.IntegerField(default=0, null=True), ), migrations.AddField( model_name='post', name='image', field=models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, width_field='width_field'), ), migrations.AddField( model_name='post', name='slug', field=models.SlugField(default=django.utils.timezone.now, unique=True), preserve_default=False, ), migrations.AddField( model_name='post', name='width_field', field=models.IntegerField(default=0, null=True), ), migrations.AddField( model_name='comment', name='post', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='blog.Post'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(db_index=True, max_length=256, verbose_name='标题')), ('sub_title', models.CharField(blank=True, max_length=1024, null=True, verbose_name='子标题')), ('thumb', models.ImageField(blank=True, null=True, upload_to=blog.models.content_file_name, verbose_name='缩略图')), ('content', ckeditor.fields.RichTextField(blank=True, null=True, verbose_name='内容')), ('create_date', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('create_by', models.IntegerField(verbose_name='创建人')), ('update_date', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('update_by', models.IntegerField(verbose_name='更新人')), ('order', models.IntegerField(default=0, verbose_name='排序')), ('status', models.IntegerField(default=0, verbose_name='状态')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Blog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('slug', models.CharField(blank=True, editable=False, max_length=250)), ('title', models.CharField(max_length=250)), ('meta_description', models.CharField(blank=True, max_length=250, null=True)), ('image', models.ImageField(blank=True, default='uploads/blogimages/dummy.jpg', null=True, upload_to=blog.models.f)), ('image_text', models.CharField(blank=True, max_length=100, null=True)), ('content', models.CharField(max_length=5000)), ('posted_on', models.DateTimeField(auto_now_add=True)), ('last_modified', models.DateTimeField(auto_now=True)), ('views', models.IntegerField(blank=True, null=True)), ('active', models.BooleanField(default=False)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Tags', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('tag_name', models.CharField(max_length=50)), ('for_blog', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.Blog')), ], ), ]