예제 #1
0
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')),
                ('article_title', models.CharField(max_length=200)),
                ('browser_url', models.SlugField(default='', max_length=150)),
                ('article_image',
                 models.ImageField(blank=True,
                                   default='no_image.png',
                                   max_length=150,
                                   upload_to=article.models.upload_image_path,
                                   verbose_name='Изображения')),
                ('article_text', models.TextField()),
                ('article_date', models.DateTimeField()),
                ('article_likes', models.IntegerField(default=0)),
            ],
            options={
                'db_table': 'article',
            },
        ),
        migrations.CreateModel(
            name='Comments',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('comments_text', models.TextField()),
                ('comments_article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='article.Article')),
            ],
            options={
                'db_table': 'comments',
            },
        ),
    ]
예제 #2
0
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=200)),
                ('content', models.TextField()),
                ('updated', models.DateTimeField(auto_now=True)),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
                ('image',
                 models.ImageField(blank=True,
                                   height_field='height_field',
                                   null=True,
                                   upload_to=article.models.upload_location,
                                   width_field='width_field')),
                ('height_field', models.IntegerField(default=0)),
                ('width_field', models.IntegerField(default=0)),
                ('slug', models.SlugField(unique=True)),
            ],
        ),
    ]
예제 #3
0
class Migration(migrations.Migration):

    dependencies = [
        ('article', '0002_auto_20190716_1419'),
    ]

    operations = [
        migrations.AlterField(
            model_name='article',
            name='article_image',
            field=models.FileField(blank=True,
                                   null=True,
                                   upload_to='media/',
                                   verbose_name='Article Image'),
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('comment_author',
                 models.CharField(max_length=50, verbose_name='Name')),
                ('comment_content', models.TextField(verbose_name='Comment')),
                ('comment_date', models.DateTimeField(auto_now_add=True)),
                ('article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='comments',
                                   to='article.Article',
                                   verbose_name=article.models.Article)),
            ],
        ),
    ]
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=200)),
                ('body', models.TextField()),
                ('image',
                 models.ImageField(blank=True,
                                   null=True,
                                   upload_to=article.models.upload_path)),
                ('publish_date', models.DateField(auto_now=True)),
            ],
        ),
    ]
예제 #5
0
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=200)),
                ('body', models.TextField()),
                ('pub_date',
                 models.DateTimeField(verbose_name='date published')),
                ('likes', models.IntegerField(default=0)),
                ('thumbnail',
                 models.FileField(
                     upload_to=article.models.get_upload_file_name)),
            ],
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('first_name', models.CharField(max_length=200)),
                ('second_name', models.CharField(max_length=200)),
                ('body', models.TextField()),
                ('pub_date',
                 models.DateTimeField(verbose_name='date published')),
                ('article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='article.Article')),
            ],
        ),
    ]
예제 #6
0
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=128, verbose_name='\u6807\u9898')),
                ('description', models.CharField(max_length=256, verbose_name='\u63cf\u8ff0')),
                ('article', models.TextField(verbose_name='\u6587\u7ae0')),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='\u53d1\u8868\u65f6\u95f4')),
                ('status', models.IntegerField(default=0, verbose_name='\u72b6\u6001')),
                ('img', models.ImageField(upload_to=article.models.upload_to_goods_img, verbose_name='\u56fe\u7247')),
            ],
            options={
                'verbose_name': '\u6587\u7ae0\u4fe1\u606f',
                'verbose_name_plural': '\u6587\u7ae0\u4fe1\u606f',
            },
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=64, verbose_name='\u540d\u79f0')),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='\u6dfb\u52a0\u65f6\u95f4')),
                ('status', models.IntegerField(default=0, verbose_name='\u72b6\u6001')),
            ],
            options={
                'verbose_name': '\u6587\u7ae0\u5206\u7c7b',
                'verbose_name_plural': '\u6587\u7ae0\u5206\u7c7b',
            },
        ),
        migrations.AddField(
            model_name='article',
            name='category',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='article.Category', verbose_name='\u5206\u7c7b'),
        ),
        migrations.AddField(
            model_name='article',
            name='user',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
        ),
    ]
예제 #7
0
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')),
                ('category_name',
                 models.CharField(max_length=50, verbose_name='Title')),
                ('category_slug', models.SlugField(max_length=60,
                                                   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=255, unique=True)),
                ('slug', models.SlugField(max_length=270, unique=True)),
                ('thumbnail',
                 models.ImageField(blank=True,
                                   upload_to=article.models.post_thumb_path)),
                ('content', models.TextField()),
                ('updated_on', models.DateTimeField(auto_now=True)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('status',
                 models.IntegerField(choices=[(0, 'Draft'), (1, 'Publish')],
                                     default=1)),
                ('author',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='blog_posts',
                                   to=settings.AUTH_USER_MODEL)),
                ('category',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='article.Category',
                                   verbose_name='Category')),
            ],
            options={
                'ordering': ['-created_on'],
            },
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('body', models.TextField()),
                ('updated_on', models.DateTimeField(auto_now=True)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('active', models.BooleanField(default=True)),
                ('name',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='blog_comments',
                                   to=settings.AUTH_USER_MODEL)),
                ('post',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='comments',
                                   to='article.Post')),
            ],
            options={
                'ordering': ['-created_on'],
            },
        ),
    ]
예제 #8
0
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')),
                ('title',
                 models.CharField(max_length=100, verbose_name='Kategori')),
                ('image', models.ImageField(upload_to='articles/categories/')),
                ('slug', models.SlugField(unique=True)),
                ('sorting', models.IntegerField(verbose_name='Sıra')),
            ],
            options={
                'verbose_name': 'Kategori',
                'verbose_name_plural': 'Kategoriler',
                'ordering': ['sorting'],
            },
        ),
        migrations.CreateModel(
            name='Article',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title',
                 models.CharField(max_length=200,
                                  verbose_name='Makale Başlık')),
                ('content', models.TextField(verbose_name='İçerik')),
                ('created_date', models.DateTimeField(auto_now_add=True)),
                ('updated_date', models.DateTimeField(auto_now=True)),
                ('status',
                 models.IntegerField(choices=[(0, 'Draft'), (1, 'Publish')],
                                     default=0,
                                     verbose_name='Durum')),
                ('image',
                 models.ImageField(
                     upload_to=article.models.upload_article_image,
                     verbose_name='Kapak Resmi')),
                ('slug', models.SlugField(unique=True)),
                ('author',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='article_post',
                                   to=settings.AUTH_USER_MODEL,
                                   verbose_name='Yazar')),
                ('category',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='articles',
                                   to='article.category',
                                   verbose_name='Kategori')),
            ],
            options={
                'verbose_name': 'Makale',
                'verbose_name_plural': 'Makaleler',
                'ordering': ['-created_date'],
            },
        ),
    ]
예제 #9
0
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=100)),
            ],
        ),
        migrations.CreateModel(
            name='Product',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=100)),
                ('description', models.TextField()),
                ('price', models.IntegerField(default=0)),
                ('sale', models.IntegerField(default=0)),
                ('created_on', models.DateField(auto_now_add=True, null=True)),
                ('image',
                 models.ImageField(blank=True,
                                   null=True,
                                   upload_to=article.models.upload)),
                ('category',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='article.Category')),
            ],
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('body', models.TextField()),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('author',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
                ('product',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='comments',
                                   to='article.Product')),
            ],
        ),
    ]
예제 #10
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0009_alter_user_last_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='Article',
            fields=[
                ('uuid',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('title', models.CharField(max_length=2048)),
                ('html', models.TextField()),
                ('cover_image',
                 models.ImageField(height_field='cover_image_height',
                                   upload_to='article/static/media/',
                                   width_field='cover_image_width')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('cover_image_height', models.IntegerField()),
                ('cover_image_width', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='Author',
            fields=[
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   primary_key=True,
                                   serialize=False,
                                   to=settings.AUTH_USER_MODEL)),
                ('is_email_validated', models.BooleanField(default=False)),
                ('picture',
                 models.ImageField(default=article.models.default_image,
                                   height_field='picture_height',
                                   upload_to='article/static/media',
                                   width_field='picture_width')),
                ('picture_height', models.IntegerField()),
                ('picture_width', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='ReadingList',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=256)),
                ('description', models.CharField(max_length=2048)),
                ('articles',
                 models.ManyToManyField(blank=True, to='article.Article')),
            ],
        ),
        migrations.AddField(
            model_name='article',
            name='author',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='article.Author'),
        ),
        migrations.AddField(
            model_name='article',
            name='reading_lists',
            field=models.ManyToManyField(blank=True, to='article.ReadingList'),
        ),
    ]
예제 #11
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Article',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('post_date', models.DateTimeField(auto_now=True)),
                ('article_type',
                 models.CharField(choices=[('LEARN_ARTI', 'Learn Article'),
                                           ('PRACTICE_ARTI',
                                            'Practice Article'),
                                           ('OTHER_ARTI', 'Other')],
                                  max_length=20)),
                ('category',
                 models.CharField(choices=[
                     ('DS', 'Data Structres'), ('ALGOS', 'Algorithms'),
                     ('ALGOS_ADV', 'Advanced Algorithms'),
                     ('DS_ADV', 'Advanced Data Structures'),
                     ('OTHER', 'Other'), ('NONE', 'NONE')
                 ],
                                  max_length=20)),
                ('title', models.CharField(max_length=120)),
                ('image_upload',
                 models.ImageField(
                     blank=True, upload_to=article.models.articleImageUpload)),
                ('description', models.TextField(blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='LearnCategories',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=120)),
                ('type',
                 models.CharField(choices=[
                     ('DS', 'Data Structres'), ('ALGOS', 'Algorithms'),
                     ('ALGOS_ADV', 'Advanced Algorithms'),
                     ('DS_ADV', 'Advanced Data Structures'),
                     ('OTHER', 'Other'), ('NONE', 'NONE')
                 ],
                                  max_length=120)),
            ],
        ),
        migrations.CreateModel(
            name='PracticeCategories',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=120)),
                ('type',
                 models.CharField(choices=[
                     ('DS', 'Data Structres'), ('ALGOS', 'Algorithms'),
                     ('ALGOS_ADV', 'Advanced Algorithms'),
                     ('DS_ADV', 'Advanced Data Structures'),
                     ('OTHER', 'Other'), ('NONE', 'NONE')
                 ],
                                  max_length=120)),
            ],
        ),
        migrations.CreateModel(
            name='Section',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(blank=True, max_length=120)),
                ('sec_text', models.TextField(blank=True)),
                ('has_subsections', models.BooleanField(default=False)),
                ('gist_url', models.CharField(blank=True, max_length=250)),
                ('article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='section',
                                   to='article.Article')),
            ],
        ),
        migrations.CreateModel(
            name='Weaknesses',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('desc', models.CharField(blank=True, max_length=120)),
                ('article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='Weaknesses',
                                   to='article.Article')),
            ],
        ),
        migrations.CreateModel(
            name='SubSection',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(blank=True, max_length=120)),
                ('subsec_text', models.TextField(blank=True)),
                ('article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='subSec',
                                   to='article.Article')),
                ('section',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='subSec',
                                   to='article.Section')),
            ],
        ),
        migrations.CreateModel(
            name='Strengths',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('desc', models.CharField(blank=True, max_length=120)),
                ('article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='Strengths',
                                   to='article.Article')),
            ],
        ),
        migrations.CreateModel(
            name='ResourcesCitations',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('source_name', models.CharField(max_length=120)),
                ('url', models.CharField(max_length=20)),
                ('article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='resources_citations',
                                   to='article.Article')),
            ],
        ),
        migrations.CreateModel(
            name='PracticeCategoryItem',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('itemName', models.CharField(max_length=150)),
                ('article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='article.Article')),
                ('category',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='article.PracticeCategories')),
            ],
        ),
        migrations.CreateModel(
            name='LearnCategoryItem',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('itemName', models.CharField(max_length=150)),
                ('article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='article.Article')),
                ('category',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='article.LearnCategories')),
            ],
        ),
        migrations.CreateModel(
            name='Complexity',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('insert_best',
                 models.CharField(blank=True, default='N/A', max_length=20)),
                ('insert_avg',
                 models.CharField(blank=True, default='N/A', max_length=20)),
                ('insert_worst',
                 models.CharField(blank=True, default='N/A', max_length=20)),
                ('delete_best',
                 models.CharField(blank=True, default='N/A', max_length=20)),
                ('delete_avg',
                 models.CharField(blank=True, default='N/A', max_length=20)),
                ('delete_worst',
                 models.CharField(blank=True, default='N/A', max_length=20)),
                ('search_best',
                 models.CharField(blank=True, default='N/A', max_length=20)),
                ('search_avg',
                 models.CharField(blank=True, default='N/A', max_length=20)),
                ('search_worst',
                 models.CharField(blank=True, default='N/A', max_length=20)),
                ('space_best',
                 models.CharField(blank=True, default='N/A', max_length=20)),
                ('space_avg',
                 models.CharField(blank=True, default='N/A', max_length=20)),
                ('space_worst',
                 models.CharField(blank=True, default='N/A', max_length=20)),
                ('article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='complexity',
                                   to='article.Article')),
            ],
        ),
    ]
예제 #12
0
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=100, verbose_name='标题')),
                ('is_public', models.BooleanField(default=True, verbose_name='公开')),
                ('thumbnail', models.FileField(blank=True, null=True, upload_to=article.models.article_img_path, verbose_name='展示图')),
                ('tags', models.CharField(blank=True, help_text='用空格分隔', max_length=200, null=True, verbose_name='标签')),
                ('summary', models.TextField(verbose_name='摘要')),
                ('content', models.TextField(verbose_name='正文')),
                ('view_times', models.IntegerField(default=0, verbose_name='查看次数')),
                ('zan_times', models.IntegerField(default=0, verbose_name='点赞次数')),
                ('is_top', models.BooleanField(default=False, verbose_name='置顶')),
                ('status', models.IntegerField(choices=[(0, '正常'), (1, '草稿')], default=0, verbose_name='状态')),
                ('is_abandon', models.BooleanField(default=False, verbose_name='是否删除')),
                ('publish_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='发布时间')),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '博客',
                'verbose_name_plural': '博客',
                'ordering': ['-is_top', '-view_times', '-publish_time'],
                'permissions': (('view_article', '查看所有文章'),),
            },
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=40, verbose_name='名称')),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '分类',
                'verbose_name_plural': '分类',
                'ordering': ['-create_time'],
            },
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('text', models.TextField(verbose_name='评论内容')),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comment_article', to='article.Article', verbose_name='文章')),
                ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='article.Comment', verbose_name='引用')),
            ],
            options={
                'verbose_name': '评论',
                'verbose_name_plural': '评论',
            },
        ),
    ]
예제 #13
0
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')),
                ('article_title',
                 models.CharField(max_length=200,
                                  verbose_name='Название статьи')),
                ('article_date',
                 models.DateTimeField(verbose_name='Дата публикации статьи')),
                ('article_likes',
                 models.IntegerField(default=0, verbose_name='Лайки')),
                ('article_author',
                 models.CharField(blank=True,
                                  max_length=200,
                                  verbose_name='Автор статьи')),
                ('short_text_ru',
                 ckeditor_uploader.fields.RichTextUploadingField(
                     blank=True, verbose_name='Короткое описание RU')),
                ('short_text_en',
                 ckeditor_uploader.fields.RichTextUploadingField(
                     blank=True, verbose_name='Короткое описание EN')),
                ('video',
                 models.CharField(blank=True,
                                  max_length=250,
                                  verbose_name='Видео id в кратком описании')),
                ('image',
                 easy_thumbnails.fields.ThumbnailerImageField(
                     blank=True,
                     upload_to=article.models.make_upload_path,
                     verbose_name='Изображение')),
                ('full_text_ru',
                 ckeditor_uploader.fields.RichTextUploadingField(
                     blank=True, verbose_name='Полное описание RU')),
                ('full_text_en',
                 ckeditor_uploader.fields.RichTextUploadingField(
                     blank=True, verbose_name='Полное описание EN')),
                ('article_video',
                 embed_video.fields.EmbedVideoField(help_text='описание видео',
                                                    verbose_name='Видео')),
            ],
            options={
                'verbose_name': 'Статья',
                'verbose_name_plural': 'Статьи',
                'db_table': 'article',
            },
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('category_name',
                 models.CharField(
                     max_length=25,
                     verbose_name='Название категории транслитом')),
                ('category_title',
                 models.CharField(blank=True,
                                  max_length=25,
                                  null=True,
                                  verbose_name='Имя категории')),
            ],
            options={
                'verbose_name': 'Категорию',
                'verbose_name_plural': 'Категории',
                'db_table': 'category',
            },
        ),
        migrations.CreateModel(
            name='Comments',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('comments_create',
                 models.DateTimeField(auto_now_add=True,
                                      null=True,
                                      verbose_name='Дата')),
                ('comments_text',
                 models.TextField(verbose_name='Добавте Ваш комментарий')),
                ('comments_article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='article.Article',
                                   verbose_name='Статья')),
                ('comments_user',
                 models.ForeignKey(default=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL,
                                   verbose_name='Пользователь')),
            ],
            options={
                'verbose_name': 'Комментарий',
                'verbose_name_plural': 'Комментарии',
                'db_table': 'comments',
            },
        ),
        migrations.CreateModel(
            name='Tag',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('tag_name',
                 models.CharField(max_length=25,
                                  verbose_name='Название тега транслитом')),
                ('tag_title',
                 models.CharField(max_length=25, verbose_name='Имя тега')),
            ],
            options={
                'verbose_name': 'тега',
                'verbose_name_plural': 'тег',
                'db_table': 'tags',
            },
        ),
        migrations.AddField(
            model_name='article',
            name='article_category',
            field=models.ForeignKey(
                default=0,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='articles',
                to='article.Category',
                verbose_name='Категории'),
        ),
        migrations.AddField(
            model_name='article',
            name='article_tag',
            field=models.ManyToManyField(related_name='articles',
                                         to='article.Tag',
                                         verbose_name='Теги'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('article', '0017_articlepost_word_count'),
    ]

    operations = [
        migrations.CreateModel(
            name='LightBlogArticle',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=50,
                                           verbose_name=' 文章标题 ')),
                ('article_status', models.IntegerField(default=1)),
                ('created',
                 models.DateTimeField(default=django.utils.timezone.now,
                                      verbose_name=' 创建时间 ')),
                ('updated',
                 models.DateTimeField(auto_now=True, verbose_name=' 更新时间 ')),
                ('article_body', models.TextField(verbose_name=' 文章内容 ')),
                ('article_wordCount',
                 models.IntegerField(default=233, verbose_name=' 文章字数 ')),
                ('article_preview',
                 imagekit.models.fields.ProcessedImageField(
                     default='default/preview.jpg',
                     upload_to=article.models.lightblog_articlepreview,
                     verbose_name='展示图片')),
                ('article_descripton',
                 models.CharField(max_length=30, verbose_name=' 文章简介 ')),
                ('isRecommend',
                 models.BooleanField(default=False, verbose_name=' 是否推荐 ')),
                ('author',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='lightblog_article',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='LightBlogSpecialColumn',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('special_column',
                 models.CharField(max_length=50, verbose_name=' 专栏名称 ')),
                ('created',
                 models.DateTimeField(default=django.utils.timezone.now,
                                      verbose_name=' 创建时间 ')),
                ('description',
                 models.CharField(max_length=100, verbose_name=' 专栏简介 ')),
                ('image_preview',
                 imagekit.models.fields.ProcessedImageField(
                     default='default/preview.jpg',
                     upload_to=article.models.lightblog_specialcolumn,
                     verbose_name='展示图片')),
                ('create_user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='lightblog_specialcolumn',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='LightBlogPersonalColumn',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('personal_column',
                 models.CharField(max_length=20, verbose_name=' 个人栏目 ')),
                ('created',
                 models.DateTimeField(default=django.utils.timezone.now,
                                      verbose_name=' 创建时间 ')),
                ('description',
                 models.CharField(max_length=100, verbose_name=' 栏目简介 ')),
                ('image_preview',
                 imagekit.models.fields.ProcessedImageField(
                     default='default/preview.jpg',
                     upload_to=article.models.lightblog_personalcolumn,
                     verbose_name='展示图片')),
                ('create_user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='lightblog_personalcolumn',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='LightBlogArticleImage',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image_preview',
                 imagekit.models.fields.ProcessedImageField(
                     upload_to=article.models.lightblog_articleimgs,
                     verbose_name='上传图片')),
                ('article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='lightblog_articleimage',
                                   to='article.LightBlogArticle')),
            ],
        ),
        migrations.AddField(
            model_name='lightblogarticle',
            name='personalColumn',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='article_personalcolumn',
                to='article.LightBlogPersonalColumn'),
        ),
        migrations.AddField(
            model_name='lightblogarticle',
            name='specialColumn',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='article_specialcolumn',
                to='article.LightBlogSpecialColumn'),
        ),
        migrations.AddField(
            model_name='lightblogarticle',
            name='users_dislike',
            field=models.ManyToManyField(
                blank=True,
                related_name='lightblog_users_dislike',
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='lightblogarticle',
            name='users_like',
            field=models.ManyToManyField(blank=True,
                                         related_name='lightblog_users_like',
                                         to=settings.AUTH_USER_MODEL),
        ),
    ]
예제 #15
0
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')),
                ('bg_img',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to=article.models.scramble_upload_img_name,
                     verbose_name='\u6807\u9898\u80cc\u666f')),
                ('title',
                 models.CharField(max_length=100,
                                  verbose_name='\u6807\u9898')),
                ('body', models.TextField(verbose_name='\u6b63\u6587')),
                ('abstract',
                 models.CharField(
                     blank=True,
                     help_text=
                     '\u6b64\u4e3a\u53ef\u9009\u9879\uff0c\u82e5\u4e3a\u7a7a\u683c\u5219\u6458\u53d6\u6b63\u6587\u524d50\u4e2a\u5b57\u7b26',
                     max_length=54,
                     null=True,
                     verbose_name='\u6458\u8981')),
                ('created_time',
                 models.DateTimeField(
                     auto_now_add=True,
                     verbose_name='\u521b\u5efa\u65f6\u95f4')),
                ('last_modified_time',
                 models.DateField(auto_now=True,
                                  verbose_name='\u4fee\u6539\u65f6\u95f4')),
                ('status',
                 models.CharField(choices=[('Editing', 'Editing'),
                                           ('Published', 'Published')],
                                  max_length=10,
                                  verbose_name='\u6587\u7ae0\u72b6\u6001')),
                ('topped',
                 models.BooleanField(default=False,
                                     verbose_name='\u662f\u5426\u7f6e\u9876')),
                ('views',
                 models.PositiveIntegerField(
                     default=0, verbose_name='\u70b9\u51fb\u91cf')),
            ],
            options={
                'ordering': ['-last_modified_time'],
            },
        ),
        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,
                                  verbose_name='\u7c7b\u76ee\u540d\u79f0')),
                ('created_time',
                 models.DateTimeField(
                     auto_now_add=True,
                     verbose_name='\u521b\u5efa\u65f6\u95f4')),
                ('last_modified_time',
                 models.DateTimeField(
                     auto_now=True, verbose_name='\u4fee\u6539\u65f6\u95f4')),
                ('owner',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='categories',
                                   to=settings.AUTH_USER_MODEL,
                                   verbose_name='\u4f5c\u8005')),
            ],
        ),
        migrations.CreateModel(
            name='Tag',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(max_length=20,
                                  verbose_name='\u6807\u7b7e\u540d\u79f0')),
                ('created_time',
                 models.DateTimeField(
                     auto_now_add=True,
                     verbose_name='\u521b\u5efa\u65f6\u95f4')),
                ('last_modified_time',
                 models.DateTimeField(
                     auto_now=True, verbose_name='\u4fee\u6539\u65f6\u95f4')),
                ('owner',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='tags',
                                   to=settings.AUTH_USER_MODEL,
                                   verbose_name='\u4f5c\u8005')),
            ],
        ),
        migrations.AddField(
            model_name='article',
            name='category',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name='articles',
                to='article.Category',
                verbose_name='\u5206\u7c7b'),
        ),
        migrations.AddField(
            model_name='article',
            name='owner',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='articles',
                to=settings.AUTH_USER_MODEL,
                verbose_name='\u4f5c\u8005'),
        ),
        migrations.AddField(
            model_name='article',
            name='tags',
            field=models.ManyToManyField(
                blank=True,
                related_name='articles',
                to='article.Tag',
                verbose_name='\u6807\u7b7e\u96c6\u5408'),
        ),
    ]
예제 #16
0
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,
                                           verbose_name='文章标题')),
                ('slug', models.SlugField(max_length=250, unique=True)),
                ('summary',
                 models.TextField(default='文章摘要等同于网页description内容,请务必填写...',
                                  max_length=230,
                                  verbose_name='文章摘要')),
                ('body', mdeditor.fields.MDTextField(verbose_name='文章内容')),
                ('image',
                 models.ImageField(
                     upload_to=article.models.articleimage_directory_path,
                     verbose_name='图片')),
                ('create_date',
                 models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('update_date',
                 models.DateTimeField(auto_now=True, verbose_name='修改时间')),
                ('views', models.IntegerField(default=0, verbose_name='阅览量')),
                ('likes', models.PositiveIntegerField(default=0)),
                ('is_top', models.BooleanField(default=False,
                                               verbose_name='置顶')),
                ('author',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL,
                                   verbose_name='作者')),
            ],
            options={
                'verbose_name': '文章',
                'verbose_name_plural': '文章',
                'ordering': ['-create_date'],
            },
        ),
        migrations.CreateModel(
            name='Carousel',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('number',
                 models.IntegerField(help_text='编号决定图片播放的顺序,图片不要多于5张',
                                     verbose_name='编号')),
                ('title',
                 models.CharField(blank=True,
                                  help_text='标题可以为空',
                                  max_length=20,
                                  null=True,
                                  verbose_name='标题')),
                ('content', models.CharField(max_length=80,
                                             verbose_name='描述')),
                ('image',
                 models.ImageField(upload_to='banner/%Y%m',
                                   verbose_name='轮播图')),
                ('url',
                 models.CharField(default='#',
                                  help_text='图片跳转的超链接,默认#表示不跳转',
                                  max_length=256,
                                  verbose_name='跳转链接')),
            ],
            options={
                'verbose_name': '图片轮播',
                'verbose_name_plural': '图片轮播',
                'ordering': ['number', '-id'],
            },
        ),
        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, verbose_name='文章分类')),
                ('slug', models.SlugField(unique=True)),
                ('description',
                 models.TextField(help_text='用来作为SEO中description,长度参考SEO标准',
                                  max_length=240,
                                  verbose_name='描述')),
            ],
            options={
                'verbose_name': '分类',
                'verbose_name_plural': '分类',
                'ordering': ['name'],
            },
        ),
        migrations.CreateModel(
            name='Course',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=20, verbose_name='教程')),
                ('slug', models.SlugField(unique=True)),
                ('description',
                 models.TextField(help_text='用来作为SEO中description,长度参考SEO标准',
                                  max_length=240,
                                  verbose_name='描述')),
            ],
            options={
                'verbose_name': '教程',
                'verbose_name_plural': '教程',
                'ordering': ['name'],
            },
        ),
        migrations.CreateModel(
            name='Keyword',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=20,
                                          verbose_name='文章关键词')),
            ],
            options={
                'verbose_name': '关键词',
                'verbose_name_plural': '关键词',
                'ordering': ['name'],
            },
        ),
        migrations.CreateModel(
            name='Tag',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=20, verbose_name='文章标签')),
                ('slug', models.SlugField(unique=True)),
                ('description',
                 models.TextField(help_text='用来作为SEO中description,长度参考SEO标准',
                                  max_length=240,
                                  verbose_name='描述')),
            ],
            options={
                'verbose_name': '标签',
                'verbose_name_plural': '标签',
                'ordering': ['id'],
            },
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('body', ckeditor.fields.RichTextField()),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='article.Article',
                                   verbose_name='文章评论')),
            ],
            options={
                'ordering': ('created', ),
            },
        ),
        migrations.AddField(
            model_name='article',
            name='category',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.PROTECT,
                to='article.Category',
                verbose_name='文章分类'),
        ),
        migrations.AddField(
            model_name='article',
            name='course',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                to='article.Course',
                verbose_name='课程'),
        ),
        migrations.AddField(
            model_name='article',
            name='keywords',
            field=models.ManyToManyField(
                help_text='文章关键词,用来作为SEO中keywords,最好使用长尾词,3-4个足够',
                to='article.Keyword',
                verbose_name='文章关键词'),
        ),
        migrations.AddField(
            model_name='article',
            name='tags',
            field=models.ManyToManyField(to='article.Tag', verbose_name='标签'),
        ),
    ]
예제 #17
0
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')),
                ('headline', models.CharField(max_length=250)),
                ('content', models.TextField()),
                ('publication_date',
                 models.DateField(default=django.utils.timezone.now)),
                ('creation_time', models.DateTimeField(auto_now_add=True)),
                ('update_time', models.DateTimeField(auto_now=True)),
                ('author',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering':
                ('publication_date', 'creation_time', 'update_time'),
            },
        ),
        migrations.CreateModel(
            name='Media',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('content',
                 models.FileField(upload_to=article.models.
                                  article_media_content_upload_path)),
                ('article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='article.Article')),
            ],
        ),
        migrations.CreateModel(
            name='Comments',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('message', models.CharField(max_length=250)),
                ('post_time', models.DateTimeField(auto_now_add=True)),
                ('update_time', models.DateTimeField(auto_now=True)),
                ('article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='article.Article')),
                ('owner',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
예제 #18
0
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')),
                ('article_title',
                 models.CharField(
                     max_length=200,
                     verbose_name=
                     '\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a')
                 ),
                ('article_intro',
                 models.TextField(
                     verbose_name=
                     '\u0412\u0430\u0448\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435'
                 )),
                ('article_text',
                 models.TextField(
                     verbose_name=
                     '\u0412\u0430\u0448\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435'
                 )),
                ('article_language',
                 models.CharField(choices=[
                     ('ru', '\u0440\u0443\u0441\u0441\u043a\u0438\u0439'),
                     ('en',
                      '\u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439'
                      ),
                     ('tm',
                      '\u0442\u0443\u0440\u043a\u043c\u0435\u043d\u0441\u043a\u0438\u0439'
                      )
                 ],
                                  default='ru',
                                  max_length=9,
                                  verbose_name='\u042f\u0437\u044b\u043a')),
                ('article_date',
                 models.DateField(
                     default=datetime.date.today,
                     verbose_name=
                     '\u0414\u0430\u0442\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438'
                 )),
                ('article_views', models.IntegerField(default=0)),
                ('article_image_intro',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to=article.models.get_image_path,
                     verbose_name=
                     '\u0412\u0441\u0442\u0443\u043f\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430'
                 )),
                ('article_image_full',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to=article.models.get_image_path,
                     verbose_name=
                     '\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438'
                 )),
                ('article_author',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'db_table': 'article',
                'verbose_name': '\u0421\u0442\u0430\u0442\u044c\u044e',
                'verbose_name_plural': '\u0421\u0442\u0430\u0442\u044c\u0438',
            },
        ),
        migrations.CreateModel(
            name='ArticleCategory',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=100,
                                          verbose_name='Name')),
                ('article_category_language',
                 models.CharField(choices=[
                     ('ru', '\u0440\u0443\u0441\u0441\u043a\u0438\u0439'),
                     ('en',
                      '\u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439'
                      ),
                     ('tm',
                      '\u0442\u0443\u0440\u043a\u043c\u0435\u043d\u0441\u043a\u0438\u0439'
                      )
                 ],
                                  default='ru',
                                  max_length=9,
                                  verbose_name='\u042f\u0437\u044b\u043a')),
            ],
            options={
                'db_table':
                'article_category',
                'verbose_name':
                '\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e',
                'verbose_name_plural':
                '\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438',
            },
        ),
        migrations.CreateModel(
            name='ArticleComment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('article_comment_text',
                 models.TextField(
                     verbose_name=
                     '\u0422\u0435\u043a\u0441\u0442 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f'
                 )),
                ('article_comment_date',
                 models.DateField(
                     default=datetime.date.today,
                     verbose_name=
                     '\u0414\u0430\u0442\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438'
                 )),
                ('article_comment_article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='article.Article')),
                ('article_comment_author',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'db_table':
                'article_comment',
                'verbose_name':
                '\u041a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u043a \u0441\u0442\u0430\u0442\u044c\u0435',
                'verbose_name_plural':
                '\u041a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a \u0441\u0442\u0430\u0442\u044c\u0435',
            },
        ),
        migrations.CreateModel(
            name='ArticleImage',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('article_image',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to=article.models.get_image_path,
                     verbose_name=
                     '\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435'
                 )),
                ('article_image_text',
                 models.TextField(
                     verbose_name=
                     '\u041f\u043e\u0434\u043f\u0438\u0441\u044c \u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044e'
                 )),
                ('article_image_date',
                 models.DateField(
                     default=datetime.date.today,
                     verbose_name=
                     '\u0414\u0430\u0442\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438'
                 )),
                ('article_image_article',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='article.Article')),
            ],
            options={
                'db_table':
                'article_image',
                'verbose_name':
                '\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043a \u0441\u0442\u0430\u0442\u044c\u0435',
                'verbose_name_plural':
                '\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043a \u0441\u0442\u0430\u0442\u044c\u0435',
            },
        ),
        migrations.AddField(
            model_name='article',
            name='article_category',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='article.ArticleCategory',
                verbose_name=
                '\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f'),
        ),
    ]