class Migration(migrations.Migration): dependencies = [ ('content', '0002_systemsetting'), ] operations = [ migrations.CreateModel( name='Albumn', fields=[ ('id', models.CharField(default=uuid.uuid4, max_length=64, primary_key=True, serialize=False, verbose_name='Activation key')), ('name', models.CharField(db_index=True, max_length=60, unique=True)), ('weight', models.IntegerField(default=0)), ('slug', models.SlugField(max_length=150, unique=True)), ('created', models.DateTimeField(auto_now_add=True, db_index=True)), ('active', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=60, null=True)), ('image_key', models.CharField(default=uuid.uuid4, max_length=64, verbose_name='Activation key')), ('image', models.ImageField(storage=content.storage.OverwriteStorage(), upload_to=content.models.image_upload_path)), ('created', models.DateTimeField(auto_now_add=True)), ('active', models.BooleanField(default=True)), ('weight', models.IntegerField(default=0)), ('albumn', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='content.Albumn')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('content', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='post', name='image', ), migrations.RemoveField( model_name='post', name='image_height', ), migrations.RemoveField( model_name='post', name='image_width', ), migrations.CreateModel( name='PostImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image_height', models.IntegerField(blank=True, null=True)), ('image_width', models.IntegerField(blank=True, null=True)), ('image', models.ImageField(height_field='image_height', upload_to=content.models.post_image_upload, width_field='image_width')), ('updated', models.DateTimeField(auto_now=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='content.Post')), ], ), ]
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=120)), ('slug', models.SlugField(unique=True)), ('active', models.BooleanField(default=True)), ('updated', models.DateTimeField(auto_now=True)), ('timestamp', models.DateTimeField(auto_now_add=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=120)), ('title_pic', models.CharField(max_length=120)), ('content', models.TextField()), ('image_height', models.IntegerField(blank=True, null=True)), ('image_width', models.IntegerField(blank=True, null=True)), ('image', models.ImageField(height_field='image_height', upload_to=content.models.post_image_upload, width_field='image_width')), ('share_num', models.IntegerField()), ('article_id', models.IntegerField()), ('location', models.CharField(max_length=50)), ('post_type', models.IntegerField()), ('public', models.BooleanField(default=True)), ('updated', models.DateTimeField(auto_now=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='category_posts', to='content.Category')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=35)), ('name_ar', models.CharField(max_length=35)), ('age_rating', models.CharField(max_length=3)), ('difficulty', models.IntegerField(validators=[django.core.validators.MaxValueValidator(5, 'Maximum Limit is 5')])), ('created_date', models.DateTimeField(default=datetime.datetime.now)), ('creator_id', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='creator', to=settings.AUTH_USER_MODEL)), ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='content.Category')), ], ), migrations.CreateModel( name='Question', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=35, null=True)), ('name_ar', models.CharField(blank=True, max_length=35, null=True)), ('age_rating', models.CharField(max_length=3)), ('Correct_answer', models.CharField(max_length=150)), ('difficulty', models.IntegerField(validators=[django.core.validators.MaxValueValidator(5, 'Maximum Limit is 5')])), ('Category_parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='content.Category')), ('creator_id', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='maker', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='QuestionImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('question_image', models.ImageField(blank=True, null=True, upload_to=content.models.get_image_path)), ('Question', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='content.Question')), ], ), migrations.AddField( model_name='question', name='question_image', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='Image', to='content.QuestionImage'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] 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=255, unique=True)), ], ), migrations.CreateModel( name='File', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, unique=True)), ('file_path', models.FileField(upload_to=content.models.content_file_name)), ('data_created', models.DateTimeField(default=django.utils.timezone.now)), ('price', models.BigIntegerField()), ('description', models.TextField(blank=True, null=True)), ('order', models.IntegerField(default=0)), ], options={ 'ordering': ['order'], }, ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, unique=True)), ('price', models.BigIntegerField()), ('created_at', models.DateTimeField(auto_now_add=True)), ('description', models.TextField(blank=True, null=True)), ('categories', models.ManyToManyField(to='content.Category')), ], options={ 'ordering': ['-created_at'], }, ), ]
class Migration(migrations.Migration): dependencies = [ ('content', '0028_auto_20170108_1657'), ] operations = [ migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField( max_length=250, verbose_name= b'\xd0\x9d\xd0\xb0\xd0\xb7\xd0\xb2\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5' )), ('image', content.fields.ThumbnailImageField( blank=True, upload_to=content.models.make_upload_path, verbose_name= b'\xd0\x98\xd0\xb7\xd0\xbe\xd0\xb1\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5' )), ('link', models.CharField( blank=True, max_length=250, null=True, verbose_name= b'\xd0\xa1\xd1\x81\xd1\x8b\xd0\xbb\xd0\xba\xd0\xb0')), ('title', models.CharField( blank=True, max_length=250, null=True, verbose_name= b'\xd0\x97\xd0\xb0\xd0\xb3\xd0\xbe\xd0\xbb\xd0\xbe\xd0\xb2\xd0\xbe\xd0\xba' )), ('descr', models.CharField( blank=True, max_length=250, null=True, verbose_name= b'\xd0\x9e\xd0\xbf\xd0\xb8\xd1\x81\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5' )), ('ordering', models.IntegerField( blank=True, default=0, null=True, verbose_name= b'\xd0\x9f\xd0\xbe\xd1\x80\xd1\x8f\xd0\xb4\xd0\xbe\xd0\xba \xd1\x81\xd0\xbe\xd1\x80\xd1\x82\xd0\xb8\xd1\x80\xd0\xbe\xd0\xb2\xd0\xba\xd0\xb8' )), ], options={ 'verbose_name': '\u0411\u0430\u043d\u0435\u0440', 'verbose_name_plural': '\u0411\u0430\u043d\u0435\u0440\u0430', }, ), migrations.AlterField( model_name='article', name='pub_date', field=models.DateField( blank=True, default=datetime.datetime(2017, 1, 8, 19, 5, 8, 614166, tzinfo=utc), verbose_name= b'\xd0\x94\xd0\xb0\xd1\x82\xd0\xb0 \xd0\xbf\xd1\x83\xd0\xb1\xd0\xbb\xd0\xb8\xd0\xba\xd0\xb0\xd1\x86\xd0\xb8\xd0\xb8' ), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Character', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('chinese', models.CharField(max_length=1)), ('pinyin', models.CharField(max_length=15)), ('part_of_speech_1', models.CharField(max_length=50)), ('definition_1', models.CharField(max_length=100)), ('part_of_speech_2', models.CharField(blank=True, max_length=50, null=True)), ('definition_2', models.CharField(blank=True, max_length=100, null=True)), ('explanation_2', models.CharField(blank=True, max_length=300, null=True)), ('part_of_speech_3', models.CharField(blank=True, max_length=50, null=True)), ('definition_3', models.CharField(blank=True, max_length=100, null=True)), ('explanation_3', models.CharField(blank=True, max_length=300, null=True)), ('mnemonic_explanation', models.CharField(max_length=800)), ('example_1_word', models.CharField(max_length=10)), ('example_1_pinyin', models.CharField(max_length=25)), ('example_1_character', models.CharField(max_length=100)), ('example_1_meaning', models.CharField(max_length=100)), ('example_2_word', models.CharField(blank=True, max_length=10, null=True)), ('example_2_pinyin', models.CharField(blank=True, max_length=25, null=True)), ('example_2_character', models.CharField(blank=True, max_length=100, null=True)), ('example_2_meaning', models.CharField(blank=True, max_length=100, null=True)), ('is_preview_definition', models.BooleanField()), ('is_preview_pinyin', models.BooleanField()), ('structure', models.IntegerField(null=True)), ('stroke_order_image', models.ImageField(default='default.jpg', upload_to='')), ], options={ 'ordering': ['id'], }, bases=(models.Model, content.models.DFModelMixin, jiezi.utils.mixins.StrDefaultReprMixin), ), migrations.CreateModel( name='Radical', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('chinese', models.CharField(max_length=6)), ('pinyin', models.CharField(max_length=15)), ('definition', models.CharField(max_length=100)), ('mnemonic_explanation', models.CharField(blank=True, max_length=300, null=True)), ('mnemonic_image', models.ImageField(default='default.jpg', upload_to='')), ('is_phonetic', models.BooleanField()), ('is_semantic', models.BooleanField()), ], options={ 'ordering': ['id'], }, bases=(models.Model, content.models.DFModelMixin, jiezi.utils.mixins.StrDefaultReprMixin), ), migrations.CreateModel( name='CharacterSet', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('characters', models.ManyToManyField(to='content.Character')), ], bases=(models.Model, content.models.DFModelMixin, jiezi.utils.mixins.StrDefaultReprMixin), ), migrations.AddField( model_name='character', name='radical_1', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='+', to='content.radical'), ), migrations.AddField( model_name='character', name='radical_2', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='content.radical'), ), migrations.AddField( model_name='character', name='radical_3', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='content.radical'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] 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=255, verbose_name='category name')), ('slug', models.SlugField(max_length=30, unique=True, verbose_name='category slug')), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField(verbose_name='comment text')), ('pub_date', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='date published')), ], options={ 'ordering': ('pub_date',), }, ), migrations.CreateModel( name='Genre', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, verbose_name='genre name')), ('slug', models.SlugField(max_length=30, unique=True, verbose_name='genre slug')), ], ), migrations.CreateModel( name='Review', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField(verbose_name='review text')), ('score', models.IntegerField(validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(10)], verbose_name='title score')), ('pub_date', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='date published')), ], options={ 'ordering': ('pub_date',), }, ), migrations.CreateModel( name='Title', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, verbose_name='title name')), ('year', models.IntegerField(db_index=True, default=0, validators=[content.models.validate_year], verbose_name='year of creation')), ('description', models.TextField(blank=True, verbose_name='title description')), ('category', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='category_titles', to='content.Category', verbose_name='category')), ('genre', models.ManyToManyField(blank=True, related_name='genre_titles', to='content.Genre', verbose_name='genre')), ], options={ 'ordering': ('year',), }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('wagtailimages', '0019_delete_filter'), ('taggit', '0002_auto_20150616_2121'), ('wagtailcore', '0040_page_draft_title'), ] operations = [ migrations.CreateModel( name='ArticleIndex', 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')), ('description', models.TextField(blank=True, max_length=160, verbose_name='Описание')), ('color', colorfield.fields.ColorField(blank=True, default='#FF0000', max_length=18, verbose_name='Цвет рубрики')), ('body', wagtail.wagtailcore.fields.StreamField((('group_1', wagtail.wagtailcore.blocks.StructBlock((('slider', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница', required=False)), ('tag', content.blocks.TagBlock(label='Тег', required=False)), ('is_random', wagtail.wagtailcore.blocks.BooleanBlock(label='Золотой фонд', required=False))), label='Материал 1 (большой)')), ('standart', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница', required=False)), ('tag', content.blocks.TagBlock(label='Тег', required=False)), ('is_random', wagtail.wagtailcore.blocks.BooleanBlock(label='Золотой фонд', required=False))), label='Материал 2 (стандартный)'))), icon='cog', label='Большой материал со стандартным', template='content/groups/group_1.html')), ('group_2', wagtail.wagtailcore.blocks.StructBlock((('little_1', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница', required=False)), ('tag', content.blocks.TagBlock(label='Тег', required=False)), ('is_random', wagtail.wagtailcore.blocks.BooleanBlock(label='Золотой фонд', required=False))), label='Материал 1 (маленький)')), ('little_2', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница', required=False)), ('tag', content.blocks.TagBlock(label='Тег', required=False)), ('is_random', wagtail.wagtailcore.blocks.BooleanBlock(label='Золотой фонд', required=False))), label='Материал 2 (маленький)')), ('cube', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница', required=False)), ('tag', content.blocks.TagBlock(label='Тег', required=False)), ('is_random', wagtail.wagtailcore.blocks.BooleanBlock(label='Золотой фонд', required=False))), label='Материал 3 (куб)')), ('standart', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница', required=False)), ('tag', content.blocks.TagBlock(label='Тег', required=False)), ('is_random', wagtail.wagtailcore.blocks.BooleanBlock(label='Золотой фонд', required=False))), label='Материал 4 (стандартный)'))), icon='cog', label='Два маленьких, куб и стандартный', template='content/groups/group_2.html')), ('group_3', wagtail.wagtailcore.blocks.StructBlock((('standart', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница', required=False)), ('tag', content.blocks.TagBlock(label='Тег', required=False)), ('is_random', wagtail.wagtailcore.blocks.BooleanBlock(label='Золотой фонд', required=False))), label='Материал 1 (стандартный)')), ('big', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница', required=False)), ('tag', content.blocks.TagBlock(label='Тег', required=False)), ('is_random', wagtail.wagtailcore.blocks.BooleanBlock(label='Золотой фонд', required=False))), label='Материал 2 (большой)'))), icon='cog', label='Стандартный и большой', template='content/groups/group_3.html')), ('group_4', wagtail.wagtailcore.blocks.StructBlock((('standart', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница', required=False)), ('tag', content.blocks.TagBlock(label='Тег', required=False)), ('is_random', wagtail.wagtailcore.blocks.BooleanBlock(label='Золотой фонд', required=False))), label='Материал 1 (стандартный)')), ('little_1', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница', required=False)), ('tag', content.blocks.TagBlock(label='Тег', required=False)), ('is_random', wagtail.wagtailcore.blocks.BooleanBlock(label='Золотой фонд', required=False))), label='Материал 2 (маленький)')), ('little_2', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница', required=False)), ('tag', content.blocks.TagBlock(label='Тег', required=False)), ('is_random', wagtail.wagtailcore.blocks.BooleanBlock(label='Золотой фонд', required=False))), label='Материал 3 (маленький)')), ('cube', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница', required=False)), ('tag', content.blocks.TagBlock(label='Тег', required=False)), ('is_random', wagtail.wagtailcore.blocks.BooleanBlock(label='Золотой фонд', required=False))), label='Материал 4 (куб)'))), icon='cog', label='Стандартный, два маленьких и куб', template='content/groups/group_4.html'))), blank=True, null=True)), ('preview_picture', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='wagtailimages.Image', verbose_name='Основная иллюстрация')), ], options={ 'verbose_name': 'Рубрика', 'verbose_name_plural': 'Рубрики', }, bases=('wagtailcore.page',), ), migrations.CreateModel( name='ArticleIndexTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content_object', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='tagged_items', to='content.ArticleIndex')), ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='content_articleindextag_items', to='taggit.Tag')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='ArticlePage', 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')), ('full_title', models.CharField(blank=True, help_text='До 150 символов', max_length=150, null=True, verbose_name='Полный заголовок')), ('short_lead', models.TextField(help_text='До 160 символов', max_length=160, verbose_name='Короткий лид')), ('full_lead', models.TextField(blank=True, help_text='До 250 символов', max_length=250, null=True, verbose_name='Полный лид')), ('count_view', models.PositiveIntegerField(default=0)), ('allowed_comments', models.BooleanField(default=True, verbose_name='Включить комментарии')), ('body', wagtail.wagtailcore.fields.StreamField((('h2', wagtail.wagtailcore.blocks.CharBlock(classname='title', icon='title', label='H2', template='content/stream_fields/h2.html')), ('embed', wagtail.wagtailembeds.blocks.EmbedBlock(icon='link', label='Эмбед')), ('image', wagtail.wagtailcore.blocks.StructBlock((('image', wagtail.wagtailimages.blocks.ImageChooserBlock(label='Фотография')), ('caption', wagtail.wagtailcore.blocks.RichTextBlock(label='Подпись'))), icon='image', label='Фотография', template='content/stream_fields/image.html')), ('quote_no_image', wagtail.wagtailcore.blocks.StructBlock((('quote', wagtail.wagtailcore.blocks.TextBlock(label='Цитата')),))), ('quote', wagtail.wagtailcore.blocks.StructBlock((('quote', wagtail.wagtailcore.blocks.TextBlock(label='Цитата')), ('author', wagtail.wagtailcore.blocks.CharBlock(label='Автор')), ('attribution', wagtail.wagtailcore.blocks.TextBlock(label='Подпись автора')), ('photo', wagtail.wagtailimages.blocks.ImageChooserBlock(label='Фотография'))))), ('read_also', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница')),))), ('paragraph', wagtail.wagtailcore.blocks.RichTextBlock(label='Параграф', template='content/stream_fields/paragraph.html')), ('gallery', wagtail.wagtailcore.blocks.ListBlock(content.blocks.ImageBlock, icon='image', label='Галерея', template='content/stream_fields/gallery.html')), ('notes', wagtail.wagtailcore.blocks.ListBlock(wagtail.wagtailcore.blocks.TextBlock(label='Подпись'), template='content/stream_fields/notes.html'))))), ('show_in_news', models.BooleanField(default=False, verbose_name='Отображать в новостях')), ('old_id', models.IntegerField(blank=True, null=True)), ], options={ 'verbose_name': 'Статья', 'verbose_name_plural': 'Статьи', }, bases=(wagtail.contrib.wagtailroutablepage.models.RoutablePageMixin, 'wagtailcore.page'), ), migrations.CreateModel( name='ArticlePageTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content_object', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='tagged_items', to='content.ArticlePage')), ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='content_articlepagetag_items', to='taggit.Tag')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Author', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=150, verbose_name='Имя')), ('last_name', models.CharField(max_length=150, verbose_name='Фамилия')), ('photo', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='wagtailimages.Image', verbose_name='Фото')), ], options={ 'verbose_name': 'Автор', 'verbose_name_plural': 'Авторы', }, ), migrations.CreateModel( name='BlogCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('live', models.BooleanField(default=True, verbose_name='Опубликовано')), ('title', models.CharField(max_length=255, verbose_name='Заголовок')), ('slug', models.CharField(max_length=255, verbose_name='Символьный код')), ('description', models.TextField(blank=True, null=True, verbose_name='Описание')), ('preview_picture', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='wagtailimages.Image', verbose_name='Основная иллюстрация')), ], options={ 'verbose_name': 'Блог', 'verbose_name_plural': 'Блоги', }, ), migrations.CreateModel( name='BlogIndex', 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')), ('intro', wagtail.wagtailcore.fields.RichTextField(blank=True)), ], options={ 'verbose_name': 'Блог', 'verbose_name_plural': 'Блоги', }, bases=('wagtailcore.page',), ), migrations.CreateModel( name='BlogPage', 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')), ('full_title', models.CharField(blank=True, help_text='До 150 символов', max_length=150, null=True, verbose_name='Полный заголовок')), ('short_lead', models.TextField(help_text='До 160 символов', max_length=160, verbose_name='Короткий лид')), ('full_lead', models.TextField(blank=True, help_text='До 250 символов', max_length=250, null=True, verbose_name='Полный лид')), ('count_view', models.PositiveIntegerField(default=0)), ('allowed_comments', models.BooleanField(default=True, verbose_name='Включить комментарии')), ('body', wagtail.wagtailcore.fields.StreamField((('h2', wagtail.wagtailcore.blocks.CharBlock(classname='title', icon='title', label='H2', template='content/stream_fields/h2.html')), ('embed', wagtail.wagtailembeds.blocks.EmbedBlock(icon='link', label='Эмбед')), ('image', wagtail.wagtailcore.blocks.StructBlock((('image', wagtail.wagtailimages.blocks.ImageChooserBlock(label='Фотография')), ('caption', wagtail.wagtailcore.blocks.RichTextBlock(label='Подпись'))), icon='image', label='Фотография', template='content/stream_fields/image.html')), ('quote_no_image', wagtail.wagtailcore.blocks.StructBlock((('quote', wagtail.wagtailcore.blocks.TextBlock(label='Цитата')),))), ('quote', wagtail.wagtailcore.blocks.StructBlock((('quote', wagtail.wagtailcore.blocks.TextBlock(label='Цитата')), ('author', wagtail.wagtailcore.blocks.CharBlock(label='Автор')), ('attribution', wagtail.wagtailcore.blocks.TextBlock(label='Подпись автора')), ('photo', wagtail.wagtailimages.blocks.ImageChooserBlock(label='Фотография'))))), ('read_also', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница')),))), ('paragraph', wagtail.wagtailcore.blocks.RichTextBlock(label='Параграф', template='content/stream_fields/paragraph.html')), ('gallery', wagtail.wagtailcore.blocks.ListBlock(content.blocks.ImageBlock, icon='image', label='Галерея', template='content/stream_fields/gallery.html')), ('notes', wagtail.wagtailcore.blocks.ListBlock(wagtail.wagtailcore.blocks.TextBlock(label='Подпись'), template='content/stream_fields/notes.html'))))), ('show_in_news', models.BooleanField(default=False, verbose_name='Отображать в новостях')), ('old_id', models.IntegerField(blank=True, null=True)), ('authors', modelcluster.fields.ParentalManyToManyField(blank=True, related_name='blogs', to='content.Author', verbose_name='Автор')), ('category', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='posts', to='content.BlogCategory', verbose_name='Блог')), ('preview_picture', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='wagtailimages.Image', verbose_name='Основная иллюстрация')), ], options={ 'verbose_name': 'Пост', 'verbose_name_plural': 'Посты', }, bases=(wagtail.contrib.wagtailroutablepage.models.RoutablePageMixin, 'wagtailcore.page'), ), migrations.CreateModel( name='BlogPageTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content_object', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='tagged_items', to='content.BlogPage')), ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='content_blogpagetag_items', to='taggit.Tag')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='NewsPage', 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')), ('full_title', models.CharField(blank=True, help_text='До 150 символов', max_length=150, null=True, verbose_name='Полный заголовок')), ('short_lead', models.TextField(help_text='До 160 символов', max_length=160, verbose_name='Короткий лид')), ('full_lead', models.TextField(blank=True, help_text='До 250 символов', max_length=250, null=True, verbose_name='Полный лид')), ('count_view', models.PositiveIntegerField(default=0)), ('allowed_comments', models.BooleanField(default=True, verbose_name='Включить комментарии')), ('body', wagtail.wagtailcore.fields.StreamField((('h2', wagtail.wagtailcore.blocks.CharBlock(classname='title', icon='title', label='H2', template='content/stream_fields/h2.html')), ('embed', wagtail.wagtailembeds.blocks.EmbedBlock(icon='link', label='Эмбед')), ('image', wagtail.wagtailcore.blocks.StructBlock((('image', wagtail.wagtailimages.blocks.ImageChooserBlock(label='Фотография')), ('caption', wagtail.wagtailcore.blocks.RichTextBlock(label='Подпись'))), icon='image', label='Фотография', template='content/stream_fields/image.html')), ('quote_no_image', wagtail.wagtailcore.blocks.StructBlock((('quote', wagtail.wagtailcore.blocks.TextBlock(label='Цитата')),))), ('quote', wagtail.wagtailcore.blocks.StructBlock((('quote', wagtail.wagtailcore.blocks.TextBlock(label='Цитата')), ('author', wagtail.wagtailcore.blocks.CharBlock(label='Автор')), ('attribution', wagtail.wagtailcore.blocks.TextBlock(label='Подпись автора')), ('photo', wagtail.wagtailimages.blocks.ImageChooserBlock(label='Фотография'))))), ('read_also', wagtail.wagtailcore.blocks.StructBlock((('page', wagtail.wagtailcore.blocks.PageChooserBlock(label='Страница')),))), ('paragraph', wagtail.wagtailcore.blocks.RichTextBlock(label='Параграф', template='content/stream_fields/paragraph.html')), ('gallery', wagtail.wagtailcore.blocks.ListBlock(content.blocks.ImageBlock, icon='image', label='Галерея', template='content/stream_fields/gallery.html')), ('notes', wagtail.wagtailcore.blocks.ListBlock(wagtail.wagtailcore.blocks.TextBlock(label='Подпись'), template='content/stream_fields/notes.html'))))), ('show_in_news', models.BooleanField(default=False, verbose_name='Отображать в новостях')), ('old_id', models.IntegerField(blank=True, null=True)), ('authors', modelcluster.fields.ParentalManyToManyField(blank=True, related_name='news', to='content.Author', verbose_name='Авторы')), ('preview_picture', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='wagtailimages.Image', verbose_name='Основная иллюстрация')), ('rubric', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='news', to='content.ArticleIndex', verbose_name='Рубрика')), ], options={ 'verbose_name': 'Новость', 'verbose_name_plural': 'Новости', }, bases=(wagtail.contrib.wagtailroutablepage.models.RoutablePageMixin, 'wagtailcore.page'), ), migrations.CreateModel( name='NewsPageTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content_object', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='tagged_items', to='content.NewsPage')), ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='content_newspagetag_items', to='taggit.Tag')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='TagIndex', 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')), ], options={ 'verbose_name': 'Тег', 'verbose_name_plural': 'Теги', }, bases=('wagtailcore.page',), ), migrations.AddField( model_name='newspage', name='tags', field=modelcluster.contrib.taggit.ClusterTaggableManager(blank=True, help_text='A comma-separated list of tags.', through='content.NewsPageTag', to='taggit.Tag', verbose_name='Тэги'), ), migrations.AddField( model_name='blogpage', name='tags', field=modelcluster.contrib.taggit.ClusterTaggableManager(blank=True, help_text='A comma-separated list of tags.', through='content.BlogPageTag', to='taggit.Tag', verbose_name='Тэги'), ), migrations.AddField( model_name='articlepage', name='authors', field=modelcluster.fields.ParentalManyToManyField(blank=True, related_name='articles', to='content.Author', verbose_name='Авторы'), ), migrations.AddField( model_name='articlepage', name='preview_picture', field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='wagtailimages.Image', verbose_name='Основная иллюстрация'), ), migrations.AddField( model_name='articlepage', name='rubric', field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='articles', to='content.ArticleIndex', verbose_name='Рубрика'), ), migrations.AddField( model_name='articlepage', name='tags', field=modelcluster.contrib.taggit.ClusterTaggableManager(blank=True, help_text='A comma-separated list of tags.', through='content.ArticlePageTag', to='taggit.Tag', verbose_name='Тэги'), ), migrations.AddField( model_name='articleindex', name='tags', field=modelcluster.contrib.taggit.ClusterTaggableManager(blank=True, help_text='A comma-separated list of tags.', through='content.ArticleIndexTag', to='taggit.Tag', verbose_name='Тэги'), ), ]
class Migration(migrations.Migration): dependencies = [ ('wagtailcore', '0040_page_draft_title'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('taggit', '0002_auto_20150616_2121'), ('content', '0044_tagindex_body'), ] operations = [ migrations.CreateModel( name='CustomImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255, verbose_name='title')), ('file', models.ImageField( height_field='height', upload_to=wagtail.wagtailimages.models.get_upload_to, verbose_name='file', width_field='width')), ('width', models.IntegerField(editable=False, verbose_name='width')), ('height', models.IntegerField(editable=False, verbose_name='height')), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='created at')), ('focal_point_x', models.PositiveIntegerField(blank=True, null=True)), ('focal_point_y', models.PositiveIntegerField(blank=True, null=True)), ('focal_point_width', models.PositiveIntegerField(blank=True, null=True)), ('focal_point_height', models.PositiveIntegerField(blank=True, null=True)), ('file_size', models.PositiveIntegerField(editable=False, null=True)), ('collection', models.ForeignKey( default=wagtail.wagtailcore.models.get_root_collection_id, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtailcore.Collection', verbose_name='collection')), ('tags', taggit.managers.TaggableManager(blank=True, help_text=None, through='taggit.TaggedItem', to='taggit.Tag', verbose_name='tags')), ('uploaded_by_user', models.ForeignKey( blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='uploaded by user')), ], options={ 'abstract': False, }, bases=(wagtail.wagtailsearch.index.Indexed, models.Model), ), migrations.CreateModel( name='CustomRendition', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('filter_spec', models.CharField(db_index=True, max_length=255)), ('file', models.ImageField(height_field='height', upload_to=wagtail.wagtailimages.models. get_rendition_upload_to, width_field='width')), ('width', models.IntegerField(editable=False)), ('height', models.IntegerField(editable=False)), ('focal_point_key', models.CharField(blank=True, default='', editable=False, max_length=16)), ('image', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='renditions', to='content.CustomImage')), ], ), migrations.AlterField( model_name='articlepage', name='body', field=wagtail.wagtailcore.fields.StreamField( (('h2', wagtail.wagtailcore.blocks.CharBlock( classname='title', icon='title', label='H2', template='content/stream_fields/h2.html')), ('embed', wagtail.wagtailembeds.blocks.EmbedBlock(icon='link', label='Эмбед')), ('image', wagtail.wagtailcore.blocks.StructBlock( (('image', wagtail.wagtailimages.blocks.ImageChooserBlock( label='Фотография')), ('caption', wagtail.wagtailcore.blocks.CharBlock(label='Подпись', required=False))), icon='image', label='Фотография', template='content/stream_fields/image.html')), ('left_image', wagtail.wagtailcore.blocks.StructBlock( (('image', wagtail.wagtailimages.blocks.ImageChooserBlock( label='Фотография')), ('title', wagtail.wagtailcore.blocks.CharBlock(label='Заголовок', required=False)), ('notes', wagtail.wagtailcore.blocks.ListBlock( wagtail.wagtailcore.blocks.StructBlock( (('key', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('value', wagtail.wagtailcore.blocks.CharBlock( label='Описание')))), label='Подписи'))), icon='image', label='Фотография слева', template='content/stream_fields/left_image.html')), ('paragraph', wagtail.wagtailcore.blocks.RichTextBlock( editor='tinymce', label='Параграф', language='ru', template='content/stream_fields/paragraph.html')), ('read_also', wagtail.wagtailcore.blocks.StructBlock( (('page', wagtail.wagtailcore.blocks.PageChooserBlock( label='Страница')), ))), ('gallery', wagtail.wagtailcore.blocks.ListBlock( content.blocks.ImageBlock, icon='image', label='Галерея', template='content/stream_fields/gallery.html')), ('notes', wagtail.wagtailcore.blocks.ListBlock( wagtail.wagtailcore.blocks.StructBlock( (('key', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('value', wagtail.wagtailcore.blocks.CharBlock( label='Описание')))), label='Подписи', template='content/stream_fields/notes.html')), ('html_field', wagtail.wagtailcore.blocks.TextBlock( help_text= 'Поле для html, css и js (может использоваться для сложных embed-кодов)', icon='code', label='html врезка', template='content/stream_fields/html_field.html')), ('anchor_field', wagtail.wagtailcore.blocks.static_block.StaticBlock( admin_text= 'Якорь (передергивает скрипты аналитики и баннеры)', icon='repeat', label='Якорь', template='content/stream_fields/anchor_field.html')), ('box_field', wagtail.wagtailcore.blocks.StructBlock( (('title', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('body', wagtail.wagtailcore.blocks.RichTextBlock( editor='tinymce', label='Содержание', language='ru', required=True))))), ('blockquote', wagtail.wagtailcore.blocks.CharBlock( icon='openquote', label='Цитата', template='content/stream_fields/blockquote.html')))), ), migrations.AlterField( model_name='blogpage', name='body', field=wagtail.wagtailcore.fields.StreamField( (('h2', wagtail.wagtailcore.blocks.CharBlock( classname='title', icon='title', label='H2', template='content/stream_fields/h2.html')), ('embed', wagtail.wagtailembeds.blocks.EmbedBlock(icon='link', label='Эмбед')), ('image', wagtail.wagtailcore.blocks.StructBlock( (('image', wagtail.wagtailimages.blocks.ImageChooserBlock( label='Фотография')), ('caption', wagtail.wagtailcore.blocks.CharBlock(label='Подпись', required=False))), icon='image', label='Фотография', template='content/stream_fields/image.html')), ('left_image', wagtail.wagtailcore.blocks.StructBlock( (('image', wagtail.wagtailimages.blocks.ImageChooserBlock( label='Фотография')), ('title', wagtail.wagtailcore.blocks.CharBlock(label='Заголовок', required=False)), ('notes', wagtail.wagtailcore.blocks.ListBlock( wagtail.wagtailcore.blocks.StructBlock( (('key', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('value', wagtail.wagtailcore.blocks.CharBlock( label='Описание')))), label='Подписи'))), icon='image', label='Фотография слева', template='content/stream_fields/left_image.html')), ('paragraph', wagtail.wagtailcore.blocks.RichTextBlock( editor='tinymce', label='Параграф', language='ru', template='content/stream_fields/paragraph.html')), ('read_also', wagtail.wagtailcore.blocks.StructBlock( (('page', wagtail.wagtailcore.blocks.PageChooserBlock( label='Страница')), ))), ('gallery', wagtail.wagtailcore.blocks.ListBlock( content.blocks.ImageBlock, icon='image', label='Галерея', template='content/stream_fields/gallery.html')), ('notes', wagtail.wagtailcore.blocks.ListBlock( wagtail.wagtailcore.blocks.StructBlock( (('key', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('value', wagtail.wagtailcore.blocks.CharBlock( label='Описание')))), label='Подписи', template='content/stream_fields/notes.html')), ('html_field', wagtail.wagtailcore.blocks.TextBlock( help_text= 'Поле для html, css и js (может использоваться для сложных embed-кодов)', icon='code', label='html врезка', template='content/stream_fields/html_field.html')), ('anchor_field', wagtail.wagtailcore.blocks.static_block.StaticBlock( admin_text= 'Якорь (передергивает скрипты аналитики и баннеры)', icon='repeat', label='Якорь', template='content/stream_fields/anchor_field.html')), ('box_field', wagtail.wagtailcore.blocks.StructBlock( (('title', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('body', wagtail.wagtailcore.blocks.RichTextBlock( editor='tinymce', label='Содержание', language='ru', required=True))))), ('blockquote', wagtail.wagtailcore.blocks.CharBlock( icon='openquote', label='Цитата', template='content/stream_fields/blockquote.html')))), ), migrations.AlterField( model_name='eventpage', name='body', field=wagtail.wagtailcore.fields.StreamField( (('h2', wagtail.wagtailcore.blocks.CharBlock( classname='title', icon='title', label='H2', template='content/stream_fields/h2.html')), ('embed', wagtail.wagtailembeds.blocks.EmbedBlock(icon='link', label='Эмбед')), ('image', wagtail.wagtailcore.blocks.StructBlock( (('image', wagtail.wagtailimages.blocks.ImageChooserBlock( label='Фотография')), ('caption', wagtail.wagtailcore.blocks.CharBlock(label='Подпись', required=False))), icon='image', label='Фотография', template='content/stream_fields/image.html')), ('left_image', wagtail.wagtailcore.blocks.StructBlock( (('image', wagtail.wagtailimages.blocks.ImageChooserBlock( label='Фотография')), ('title', wagtail.wagtailcore.blocks.CharBlock(label='Заголовок', required=False)), ('notes', wagtail.wagtailcore.blocks.ListBlock( wagtail.wagtailcore.blocks.StructBlock( (('key', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('value', wagtail.wagtailcore.blocks.CharBlock( label='Описание')))), label='Подписи'))), icon='image', label='Фотография слева', template='content/stream_fields/left_image.html')), ('paragraph', wagtail.wagtailcore.blocks.RichTextBlock( editor='tinymce', label='Параграф', language='ru', template='content/stream_fields/paragraph.html')), ('read_also', wagtail.wagtailcore.blocks.StructBlock( (('page', wagtail.wagtailcore.blocks.PageChooserBlock( label='Страница')), ))), ('gallery', wagtail.wagtailcore.blocks.ListBlock( content.blocks.ImageBlock, icon='image', label='Галерея', template='content/stream_fields/gallery.html')), ('notes', wagtail.wagtailcore.blocks.ListBlock( wagtail.wagtailcore.blocks.StructBlock( (('key', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('value', wagtail.wagtailcore.blocks.CharBlock( label='Описание')))), label='Подписи', template='content/stream_fields/notes.html')), ('html_field', wagtail.wagtailcore.blocks.TextBlock( help_text= 'Поле для html, css и js (может использоваться для сложных embed-кодов)', icon='code', label='html врезка', template='content/stream_fields/html_field.html')), ('anchor_field', wagtail.wagtailcore.blocks.static_block.StaticBlock( admin_text= 'Якорь (передергивает скрипты аналитики и баннеры)', icon='repeat', label='Якорь', template='content/stream_fields/anchor_field.html')), ('box_field', wagtail.wagtailcore.blocks.StructBlock( (('title', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('body', wagtail.wagtailcore.blocks.RichTextBlock( editor='tinymce', label='Содержание', language='ru', required=True))))), ('blockquote', wagtail.wagtailcore.blocks.CharBlock( icon='openquote', label='Цитата', template='content/stream_fields/blockquote.html')))), ), migrations.AlterField( model_name='issuepage', name='body', field=wagtail.wagtailcore.fields.StreamField( (('h2', wagtail.wagtailcore.blocks.CharBlock( classname='title', icon='title', label='H2', template='content/stream_fields/h2.html')), ('embed', wagtail.wagtailembeds.blocks.EmbedBlock(icon='link', label='Эмбед')), ('image', wagtail.wagtailcore.blocks.StructBlock( (('image', wagtail.wagtailimages.blocks.ImageChooserBlock( label='Фотография')), ('caption', wagtail.wagtailcore.blocks.CharBlock(label='Подпись', required=False))), icon='image', label='Фотография', template='content/stream_fields/image.html')), ('left_image', wagtail.wagtailcore.blocks.StructBlock( (('image', wagtail.wagtailimages.blocks.ImageChooserBlock( label='Фотография')), ('title', wagtail.wagtailcore.blocks.CharBlock(label='Заголовок', required=False)), ('notes', wagtail.wagtailcore.blocks.ListBlock( wagtail.wagtailcore.blocks.StructBlock( (('key', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('value', wagtail.wagtailcore.blocks.CharBlock( label='Описание')))), label='Подписи'))), icon='image', label='Фотография слева', template='content/stream_fields/left_image.html')), ('paragraph', wagtail.wagtailcore.blocks.RichTextBlock( editor='tinymce', label='Параграф', language='ru', template='content/stream_fields/paragraph.html')), ('read_also', wagtail.wagtailcore.blocks.StructBlock( (('page', wagtail.wagtailcore.blocks.PageChooserBlock( label='Страница')), ))), ('gallery', wagtail.wagtailcore.blocks.ListBlock( content.blocks.ImageBlock, icon='image', label='Галерея', template='content/stream_fields/gallery.html')), ('notes', wagtail.wagtailcore.blocks.ListBlock( wagtail.wagtailcore.blocks.StructBlock( (('key', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('value', wagtail.wagtailcore.blocks.CharBlock( label='Описание')))), label='Подписи', template='content/stream_fields/notes.html')), ('html_field', wagtail.wagtailcore.blocks.TextBlock( help_text= 'Поле для html, css и js (может использоваться для сложных embed-кодов)', icon='code', label='html врезка', template='content/stream_fields/html_field.html')), ('anchor_field', wagtail.wagtailcore.blocks.static_block.StaticBlock( admin_text= 'Якорь (передергивает скрипты аналитики и баннеры)', icon='repeat', label='Якорь', template='content/stream_fields/anchor_field.html')), ('box_field', wagtail.wagtailcore.blocks.StructBlock( (('title', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('body', wagtail.wagtailcore.blocks.RichTextBlock( editor='tinymce', label='Содержание', language='ru', required=True))))), ('blockquote', wagtail.wagtailcore.blocks.CharBlock( icon='openquote', label='Цитата', template='content/stream_fields/blockquote.html')))), ), migrations.AlterField( model_name='newspage', name='body', field=wagtail.wagtailcore.fields.StreamField( (('h2', wagtail.wagtailcore.blocks.CharBlock( classname='title', icon='title', label='H2', template='content/stream_fields/h2.html')), ('embed', wagtail.wagtailembeds.blocks.EmbedBlock(icon='link', label='Эмбед')), ('image', wagtail.wagtailcore.blocks.StructBlock( (('image', wagtail.wagtailimages.blocks.ImageChooserBlock( label='Фотография')), ('caption', wagtail.wagtailcore.blocks.CharBlock(label='Подпись', required=False))), icon='image', label='Фотография', template='content/stream_fields/image.html')), ('left_image', wagtail.wagtailcore.blocks.StructBlock( (('image', wagtail.wagtailimages.blocks.ImageChooserBlock( label='Фотография')), ('title', wagtail.wagtailcore.blocks.CharBlock(label='Заголовок', required=False)), ('notes', wagtail.wagtailcore.blocks.ListBlock( wagtail.wagtailcore.blocks.StructBlock( (('key', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('value', wagtail.wagtailcore.blocks.CharBlock( label='Описание')))), label='Подписи'))), icon='image', label='Фотография слева', template='content/stream_fields/left_image.html')), ('paragraph', wagtail.wagtailcore.blocks.RichTextBlock( editor='tinymce', label='Параграф', language='ru', template='content/stream_fields/paragraph.html')), ('read_also', wagtail.wagtailcore.blocks.StructBlock( (('page', wagtail.wagtailcore.blocks.PageChooserBlock( label='Страница')), ))), ('gallery', wagtail.wagtailcore.blocks.ListBlock( content.blocks.ImageBlock, icon='image', label='Галерея', template='content/stream_fields/gallery.html')), ('notes', wagtail.wagtailcore.blocks.ListBlock( wagtail.wagtailcore.blocks.StructBlock( (('key', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('value', wagtail.wagtailcore.blocks.CharBlock( label='Описание')))), label='Подписи', template='content/stream_fields/notes.html')), ('html_field', wagtail.wagtailcore.blocks.TextBlock( help_text= 'Поле для html, css и js (может использоваться для сложных embed-кодов)', icon='code', label='html врезка', template='content/stream_fields/html_field.html')), ('anchor_field', wagtail.wagtailcore.blocks.static_block.StaticBlock( admin_text= 'Якорь (передергивает скрипты аналитики и баннеры)', icon='repeat', label='Якорь', template='content/stream_fields/anchor_field.html')), ('box_field', wagtail.wagtailcore.blocks.StructBlock( (('title', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('body', wagtail.wagtailcore.blocks.RichTextBlock( editor='tinymce', label='Содержание', language='ru', required=True))))), ('blockquote', wagtail.wagtailcore.blocks.CharBlock( icon='openquote', label='Цитата', template='content/stream_fields/blockquote.html')))), ), migrations.AlterUniqueTogether( name='customrendition', unique_together=set([('image', 'filter_spec', 'focal_point_key')]), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('contenttypes', '0002_remove_content_type_name'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Content', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.CharField(default='UNPROCESSED', editable=False, max_length=40)), ('privacy', models.CharField(choices=[('PRIVATE', 'Private'), ('RESTRICTED', 'Group'), ('PUBLIC', 'Public')], default='PRIVATE', max_length=40, verbose_name='Privacy')), ('uid', models.CharField(db_index=True, default=content.models.get_uid, editable=False, max_length=40, unique=True)), ('originalfilename', models.CharField(editable=False, max_length=256, null=True, verbose_name='Original file name')), ('filesize', models.IntegerField(editable=False, null=True)), ('filetime', models.DateTimeField(blank=True, editable=False, null=True)), ('mimetype', models.CharField(editable=False, max_length=200, null=True)), ('file', models.FileField( storage=django.core.files.storage. FileSystemStorage(location=pathlib.PurePosixPath( '/Users/arista/Documents/workspace/mestadb-py3/services/mestadb/data/content' )), upload_to=content.models.upload_split_by_1000)), ('preview', models.ImageField( blank=True, editable=False, storage=django.core.files.storage. FileSystemStorage(location=pathlib.PurePosixPath( '/Users/arista/Documents/workspace/mestadb-py3/services/mestadb/var/preview' )), upload_to=content.models.upload_split_by_1000)), ('md5', models.CharField(editable=False, max_length=32, null=True)), ('sha1', models.CharField(editable=False, max_length=40, null=True)), ('linktype', models.CharField(blank=True, max_length=500)), ('point', django.contrib.gis.db.models.fields.PointField(blank=True, geography=True, null=True, srid=4326)), ('point_geom', django.contrib.gis.db.models.fields.PointField(blank=True, null=True, srid=4326)), ('title', models.CharField(blank=True, max_length=200, verbose_name='Title')), ('caption', models.TextField(blank=True, verbose_name='Caption')), ('author', models.CharField(blank=True, max_length=200, verbose_name='Author')), ('keywords', models.CharField(blank=True, max_length=500, verbose_name='Keywords')), ('place', models.CharField(blank=True, max_length=500, verbose_name='Place')), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('opens', models.DateTimeField(blank=True, null=True)), ('expires', models.DateTimeField(blank=True, null=True)), ('object_id', models.PositiveIntegerField(blank=True, null=True)), ('content_type', models.ForeignKey( blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, to='contenttypes.contenttype')), ], ), migrations.CreateModel( name='Mail', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.CharField(choices=[('UNPROCESSED', 'UNPROCESSED'), ('PROCESSED', 'PROCESSED'), ('DUPLICATE', 'DUPLICATE'), ('FAILED', 'FAILED')], default='UNPROCESSED', max_length=40)), ('filesize', models.IntegerField(editable=False, null=True)), ('file', models.FileField( editable=False, storage=django.core.files.storage.FileSystemStorage( location= '/Users/arista/Documents/workspace/mestadb-py3/services/mestadb/var/mail/content' ), upload_to=content.models.upload_split_by_1000)), ('md5', models.CharField(db_index=True, editable=False, max_length=32)), ('sha1', models.CharField(db_index=True, editable=False, max_length=40)), ('created', models.DateTimeField(auto_now_add=True)), ('processed', models.DateTimeField(null=True)), ], ), migrations.CreateModel( name='Audio', fields=[ ('content', models.OneToOneField( editable=False, on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='content.content')), ('duration', models.FloatField(blank=True, null=True)), ('bitrate', models.FloatField(blank=True, editable=False, null=True)), ], ), migrations.CreateModel( name='Image', fields=[ ('content', models.OneToOneField( editable=False, on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='content.content')), ('width', models.IntegerField(blank=True, editable=False, null=True)), ('height', models.IntegerField(blank=True, editable=False, null=True)), ('rotate', models.IntegerField(blank=True, choices=[(0, 0), (90, 90), (180, 180), (270, 270)], default=0, null=True)), ('thumbnail', models.ImageField( editable=False, storage=django.core.files.storage. FileSystemStorage(location=pathlib.PurePosixPath( '/Users/arista/Documents/workspace/mestadb-py3/services/mestadb/var/preview' )), upload_to=content.models.upload_split_by_1000)), ], ), migrations.CreateModel( name='Uploadinfo', fields=[ ('content', models.OneToOneField( editable=False, on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='content.content')), ('sessionid', models.CharField(blank=True, editable=False, max_length=200)), ('ip', models.GenericIPAddressField(blank=True, editable=False, null=True)), ('useragent', models.CharField(blank=True, editable=False, max_length=500)), ('info', models.TextField(blank=True)), ], ), migrations.CreateModel( name='Video', fields=[ ('content', models.OneToOneField( editable=False, on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='content.content')), ('width', models.IntegerField(blank=True, editable=False, null=True)), ('height', models.IntegerField(blank=True, editable=False, null=True)), ('duration', models.FloatField(blank=True, editable=False, null=True)), ('bitrate', models.CharField(blank=True, editable=False, max_length=256, null=True)), ('thumbnail', models.ImageField( editable=False, storage=django.core.files.storage. FileSystemStorage(location=pathlib.PurePosixPath( '/Users/arista/Documents/workspace/mestadb-py3/services/mestadb/var/preview' )), upload_to=content.models.upload_split_by_1000)), ], ), migrations.CreateModel( name='Videoinstance', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('mimetype', models.CharField(editable=False, max_length=200)), ('filesize', models.IntegerField(blank=True, editable=False, null=True)), ('duration', models.FloatField(blank=True, editable=False, null=True)), ('bitrate', models.FloatField(blank=True, editable=False, null=True)), ('extension', models.CharField(editable=False, max_length=16)), ('width', models.IntegerField(blank=True, editable=False, null=True)), ('height', models.IntegerField(blank=True, editable=False, null=True)), ('framerate', models.FloatField(blank=True, editable=False, null=True)), ('file', models.FileField( editable=False, storage=django.core.files.storage. FileSystemStorage(location=pathlib.PurePosixPath( '/Users/arista/Documents/workspace/mestadb-py3/services/mestadb/var/video' )), upload_to=content.models.upload_split_by_1000)), ('command', models.CharField(editable=False, max_length=2000)), ('created', models.DateTimeField(auto_now_add=True)), ('content', models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, related_name='videoinstances', to='content.content')), ], ), migrations.CreateModel( name='Group', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('slug', models.SlugField(max_length=100)), ('description', models.TextField()), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('users', models.ManyToManyField(blank=True, related_name='contentgroups', to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='content', name='group', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='content.group'), ), migrations.AddField( model_name='content', name='parent', field=models.ForeignKey( blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to='content.content'), ), migrations.AddField( model_name='content', name='peers', field=models.ManyToManyField(blank=True, editable=False, to='content.content'), ), migrations.AddField( model_name='content', name='user', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL), ), migrations.CreateModel( name='Audioinstance', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('mimetype', models.CharField(editable=False, max_length=200)), ('filesize', models.IntegerField(blank=True, editable=False, null=True)), ('duration', models.FloatField(blank=True, editable=False, null=True)), ('bitrate', models.FloatField(blank=True, editable=False, null=True)), ('extension', models.CharField(editable=False, max_length=16)), ('file', models.FileField( editable=False, storage=django.core.files.storage. FileSystemStorage(location=pathlib.PurePosixPath( '/Users/arista/Documents/workspace/mestadb-py3/services/mestadb/var/audio' )), upload_to=content.models.upload_split_by_1000)), ('command', models.CharField(editable=False, max_length=2000)), ('created', models.DateTimeField(auto_now_add=True)), ('content', models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, related_name='audioinstances', to='content.content')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('wagtailcore', '0040_page_draft_title'), ('taggit', '0002_auto_20150616_2121'), ('wagtailimages', '0019_delete_filter'), ('content', '0036_blogcategory_short_description'), ] operations = [ migrations.CreateModel( name='EventIndex', 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')), ], options={ 'abstract': False, }, bases=(content.models.MobileTemplateMixin, 'wagtailcore.page'), ), migrations.CreateModel( name='EventPage', 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')), ('full_title', models.CharField(blank=True, help_text='До 150 символов', max_length=150, null=True, verbose_name='Полный заголовок')), ('short_lead', models.TextField(help_text='До 160 символов', max_length=300, verbose_name='Короткий лид')), ('full_lead', models.TextField(blank=True, help_text='До 250 символов', max_length=300, null=True, verbose_name='Полный лид')), ('count_view', models.PositiveIntegerField(default=0)), ('allowed_comments', models.BooleanField(default=True, verbose_name='Включить комментарии')), ('body', wagtail.wagtailcore.fields.StreamField( (('h2', wagtail.wagtailcore.blocks.CharBlock( classname='title', icon='title', label='H2', template='content/stream_fields/h2.html')), ('embed', wagtail.wagtailembeds.blocks.EmbedBlock(icon='link', label='Эмбед')), ('image', wagtail.wagtailcore.blocks.StructBlock( (('image', wagtail.wagtailimages.blocks.ImageChooserBlock( label='Фотография')), ('caption', wagtail.wagtailcore.blocks.RichTextBlock( label='Подпись', required=False))), icon='image', label='Фотография', template='content/stream_fields/image.html')), ('left_image', wagtail.wagtailcore.blocks.StructBlock( (('image', wagtail.wagtailimages.blocks.ImageChooserBlock( label='Фотография')), ('title', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок', required=False)), ('notes', wagtail.wagtailcore.blocks.ListBlock( wagtail.wagtailcore.blocks.StructBlock( (('key', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('value', wagtail.wagtailcore.blocks.CharBlock( label='Описание')))), label='Подписи'))), icon='image', label='Фотография слева', template='content/stream_fields/left_image.html')), ('paragraph', wagtail.wagtailcore.blocks.RichTextBlock( editor='tinymce', label='Параграф', language='ru', template='content/stream_fields/paragraph.html')), ('read_also', wagtail.wagtailcore.blocks.StructBlock( (('page', wagtail.wagtailcore.blocks.PageChooserBlock( label='Страница')), ))), ('gallery', wagtail.wagtailcore.blocks.ListBlock( content.blocks.ImageBlock, icon='image', label='Галерея', template='content/stream_fields/gallery.html')), ('notes', wagtail.wagtailcore.blocks.ListBlock( wagtail.wagtailcore.blocks.StructBlock( (('key', wagtail.wagtailcore.blocks.CharBlock( label='Заголовок')), ('value', wagtail.wagtailcore.blocks.CharBlock( label='Описание')))), label='Подписи', template='content/stream_fields/notes.html')), ('html_field', wagtail.wagtailcore.blocks.TextBlock( help_text= 'Поле для html, css и js (может использоваться для сложных embed-кодов)', icon='code', label='html врезка', template='content/stream_fields/html_field.html')))) ), ('show_in_news', models.BooleanField(default=False, verbose_name='Отображать в новостях')), ('show_in_promo', models.BooleanField(default=False, verbose_name='Отображать в promotion')), ('old_id', models.IntegerField(blank=True, null=True)), ('published_at', models.DateTimeField(blank=True, null=True, verbose_name='Дата/время публикации')), ('active_from', models.DateTimeField(verbose_name='Дата и время начала')), ('active_to', models.DateTimeField(verbose_name='Дата и время конца')), ('preview_picture', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='wagtailimages.Image', verbose_name='Основная иллюстрация')), ], options={ 'verbose_name': 'Событие', 'verbose_name_plural': 'События', }, bases=( content.models.MobileTemplateMixin, wagtail.contrib.wagtailroutablepage.models.RoutablePageMixin, 'wagtailcore.page'), ), migrations.CreateModel( name='EventPageTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content_object', modelcluster.fields.ParentalKey( on_delete=django.db.models.deletion.CASCADE, related_name='tagged_items', to='content.EventPage')), ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='content_eventpagetag_items', to='taggit.Tag')), ], options={ 'abstract': False, }, ), migrations.AddField( model_name='eventpage', name='tags', field=modelcluster.contrib.taggit.ClusterTaggableManager( blank=True, help_text='A comma-separated list of tags.', through='content.EventPageTag', to='taggit.Tag', verbose_name='Теги'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Course', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(default='', max_length=255)), ('slug', models.SlugField(editable=False, max_length=30, unique=True)), ('duration', models.IntegerField(default=4)), ('no_of_semesters', models.IntegerField(default=8)), ], ), migrations.CreateModel( name='Exam_Paper_Count', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('paper_cnt', models.IntegerField(default=0)), ], ), migrations.CreateModel( name='Note_Count', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('note_cnt', models.IntegerField(default=0)), ], ), migrations.CreateModel( name='Subject', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(default='', max_length=255)), ('slug', models.SlugField(editable=False, max_length=30, unique=True)), ('course', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='content.Course', verbose_name='Course')), ], ), migrations.CreateModel( name='Note', fields=[ ('note_id', models.CharField(max_length=20, primary_key=True, serialize=False)), ('title', models.CharField(default='', max_length=300)), ('note_pdf', models.FileField( blank=True, default=None, null=True, upload_to=content.models.get_note_path, validators=[ django.core.validators.FileExtensionValidator(['pdf']) ])), ('is_approved', models.BooleanField(default=False)), ('course', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='content.Course', verbose_name='Course')), ('subject', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='content.Subject', verbose_name='Subject')), ('upvotes', models.ManyToManyField(related_name='upvotes', to=settings.AUTH_USER_MODEL)), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Provider')), ], ), migrations.CreateModel( name='Exam_Paper', fields=[ ('paper_id', models.CharField(max_length=20, primary_key=True, serialize=False)), ('title', models.CharField(default='', max_length=300)), ('batch_year', models.IntegerField()), ('semester', models.IntegerField()), ('exam', models.CharField(max_length=20)), ('exam_type', models.CharField(choices=[('T', 'Theory'), ('P', 'Practical')], default='T', max_length=1)), ('paper_pdf', models.FileField( blank=True, default=None, null=True, upload_to=content.models.get_paper_path, validators=[ django.core.validators.FileExtensionValidator(['pdf']) ])), ('is_approved', models.BooleanField(default=False)), ('course', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='content.Course', verbose_name='Course')), ('subject', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='content.Subject', verbose_name='Subject')), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Provider')), ], ), migrations.CreateModel( name='Book', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=300)), ('author', models.CharField(max_length=300)), ('image', models.ImageField(default='download.jpg', upload_to='books/')), ('flink', models.CharField(blank=True, max_length=300)), ('alink', models.CharField(blank=True, default='', max_length=300)), ('slug', models.SlugField(editable=False, max_length=30, unique=True)), ('course', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='content.Course', verbose_name='Course')), ('subject', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='content.Subject', verbose_name='Subject')), ], ), ]
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')), ('name', models.CharField( max_length=250, verbose_name= b'\xd0\x9d\xd0\xb0\xd0\xb7\xd0\xb2\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5' )), ('image', content.fields.ThumbnailImageField( blank=True, upload_to=content.models.make_upload_path, verbose_name= b'\xd0\x98\xd0\xb7\xd0\xbe\xd0\xb1\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5' )), ('title', models.CharField( blank=True, max_length=250, verbose_name= b'\xd0\x97\xd0\xb0\xd0\xb3\xd0\xbe\xd0\xbb\xd0\xbe\xd0\xb2\xd0\xbe\xd0\xba \xd0\xb2 \xd0\xb1\xd1\x80\xd0\xb0\xd1\x83\xd0\xb7\xd0\xb5\xd1\x80\xd0\xb5' )), ('metaKey', models.CharField( blank=True, max_length=250, verbose_name= b'\xd0\x9a\xd0\xbb\xd1\x8e\xd1\x87\xd0\xb5\xd0\xb2\xd1\x8b\xd0\xb5 \xd1\x81\xd0\xbb\xd0\xbe\xd0\xb2\xd0\xb0' )), ('metaDesc', models.CharField( blank=True, max_length=250, verbose_name= b'\xd0\x9e\xd0\xbf\xd0\xb8\xd1\x81\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5' )), ('slug', models.CharField(blank=True, max_length=250, verbose_name=b'\xd0\xa3\xd1\x80\xd0\xbb')), ('short_text', tinymce.models.HTMLField( blank=True, verbose_name= b'\xd0\x9a\xd0\xbe\xd1\x80\xd0\xbe\xd1\x82\xd0\xba\xd0\xbe\xd0\xb5 \xd0\xbe\xd0\xbf\xd0\xb8\xd1\x81\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5' )), ('full_text', tinymce.models.HTMLField( blank=True, verbose_name= b'\xd0\x9f\xd0\xbe\xd0\xbb\xd0\xbd\xd0\xbe\xd0\xb5 \xd0\xbe\xd0\xbf\xd0\xb8\xd1\x81\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5' )), ('published', models.BooleanField( verbose_name= b'\xd0\x9e\xd0\xbf\xd1\x83\xd0\xb1\xd0\xbb\xd0\xb8\xd0\xba\xd0\xbe\xd0\xb2\xd0\xb0\xd0\xbd' )), ('ordering', models.IntegerField( blank=True, default=0, null=True, verbose_name= b'\xd0\x9f\xd0\xbe\xd1\x80\xd1\x8f\xd0\xb4\xd0\xbe\xd0\xba \xd1\x81\xd0\xbe\xd1\x80\xd1\x82\xd0\xb8\xd1\x80\xd0\xbe\xd0\xb2\xd0\xba\xd0\xb8' )), ], options={ 'verbose_name_plural': '\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u044b', }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField( max_length=250, verbose_name= b'\xd0\x9d\xd0\xb0\xd0\xb7\xd0\xb2\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5' )), ('title', models.CharField( blank=True, max_length=250, verbose_name= b'\xd0\x97\xd0\xb0\xd0\xb3\xd0\xbe\xd0\xbb\xd0\xbe\xd0\xb2\xd0\xbe\xd0\xba \xd0\xb2 \xd0\xb1\xd1\x80\xd0\xb0\xd1\x83\xd0\xb7\xd0\xb5\xd1\x80\xd0\xb5' )), ('metakey', models.CharField( blank=True, max_length=250, verbose_name= b'\xd0\x9a\xd0\xbb\xd1\x8e\xd1\x87\xd0\xb5\xd0\xb2\xd1\x8b\xd0\xb5 \xd1\x81\xd0\xbb\xd0\xbe\xd0\xb2\xd0\xb0' )), ('metadesc', models.CharField( blank=True, max_length=250, verbose_name= b'\xd0\x9c\xd0\xb5\xd1\x82\xd0\xb0 \xd0\xbe\xd0\xbf\xd0\xb8\xd1\x81\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5' )), ('slug', models.CharField(blank=True, max_length=250, verbose_name=b'\xd0\xa3\xd1\x80\xd0\xbb')), ('published', models.BooleanField( verbose_name= b'\xd0\x9e\xd0\xbf\xd1\x83\xd0\xb1\xd0\xbb\xd0\xb8\xd0\xba\xd0\xbe\xd0\xb2\xd0\xb0\xd0\xbd' )), ('ordering', models.IntegerField( blank=True, default=0, null=True, verbose_name= b'\xd0\x9f\xd0\xbe\xd1\x80\xd1\x8f\xd0\xb4\xd0\xbe\xd0\xba \xd1\x81\xd0\xbe\xd1\x80\xd1\x82\xd0\xb8\xd1\x80\xd0\xbe\xd0\xb2\xd0\xba\xd0\xb8' )), ('lft', models.PositiveIntegerField(db_index=True, editable=False)), ('rght', models.PositiveIntegerField(db_index=True, editable=False)), ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)), ('level', models.PositiveIntegerField(db_index=True, editable=False)), ('parent', mptt.fields.TreeForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='content.Category', verbose_name= '\u0420\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f' )), ], options={ 'verbose_name_plural': '\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438', }, managers=[ ('objects', django.db.models.manager.Manager()), ], ), migrations.CreateModel( name='Menu', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField( max_length=200, verbose_name= b'\xd0\x9d\xd0\xb0\xd0\xb7\xd0\xb2\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5' )), ], options={ 'verbose_name_plural': '\u041c\u0435\u043d\u044e', }, ), migrations.CreateModel( name='MenuItem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField( max_length=200, verbose_name= b'\xd0\x9d\xd0\xb0\xd0\xb7\xd0\xb2\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5' )), ('slug', models.CharField(blank=True, max_length=250, verbose_name=b'\xd0\xa3\xd1\x80\xd0\xbb')), ('published', models.BooleanField( verbose_name= b'\xd0\x9e\xd0\xbf\xd1\x83\xd0\xb1\xd0\xbb\xd0\xb8\xd0\xba\xd0\xbe\xd0\xb2\xd0\xb0\xd0\xbd' )), ('ordering', models.IntegerField( blank=True, default=0, null=True, verbose_name= b'\xd0\x9f\xd0\xbe\xd1\x80\xd1\x8f\xd0\xb4\xd0\xbe\xd0\xba \xd1\x81\xd0\xbe\xd1\x80\xd1\x82\xd0\xb8\xd1\x80\xd0\xbe\xd0\xb2\xd0\xba\xd0\xb8' )), ('lft', models.PositiveIntegerField(db_index=True, editable=False)), ('rght', models.PositiveIntegerField(db_index=True, editable=False)), ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)), ('level', models.PositiveIntegerField(db_index=True, editable=False)), ('menu', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='content.Menu', verbose_name=b'\xd0\x9c\xd0\xb5\xd0\xbd\xd1\x8e')), ('parent', mptt.fields.TreeForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='content.MenuItem', verbose_name= '\u0420\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e' )), ], options={ 'verbose_name_plural': '\u041f\u0443\u043d\u043a\u0442\u044b \u043c\u0435\u043d\u044e', }, managers=[ ('objects', django.db.models.manager.Manager()), ], ), migrations.CreateModel( name='Snipet', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField( max_length=250, verbose_name= b'\xd0\x9d\xd0\xb0\xd0\xb7\xd0\xb2\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5' )), ('text', tinymce.models.HTMLField( blank=True, verbose_name= b'\xd0\x9a\xd0\xbe\xd0\xb4 \xd1\x81\xd0\xbd\xd0\xb8\xd0\xbf\xd0\xb5\xd1\x82\xd0\xb0' )), ('published', models.BooleanField( verbose_name= b'\xd0\x9e\xd0\xbf\xd1\x83\xd0\xb1\xd0\xbb\xd0\xb8\xd0\xba\xd0\xbe\xd0\xb2\xd0\xb0\xd0\xbd' )), ('ordering', models.IntegerField( blank=True, default=0, null=True, verbose_name= b'\xd0\x9f\xd0\xbe\xd1\x80\xd1\x8f\xd0\xb4\xd0\xbe\xd0\xba \xd1\x81\xd0\xbe\xd1\x80\xd1\x82\xd0\xb8\xd1\x80\xd0\xbe\xd0\xb2\xd0\xba\xd0\xb8' )), ], options={ 'verbose_name': '\u0421\u043d\u0438\u043f\u0435\u0442', 'verbose_name_plural': '\u041a\u0443\u0441\u043a\u0438 \u043a\u043e\u0434\u0430', }, ), migrations.AddField( model_name='article', name='category', field=models.ForeignKey( blank=True, on_delete=django.db.models.deletion.CASCADE, to='content.Category', verbose_name= b'\xd0\x9a\xd0\xb0\xd1\x82\xd0\xb5\xd0\xb3\xd0\xbe\xd1\x80\xd0\xb8\xd1\x8f' ), ), ]