text: # Generated by Django 2.2.6 on 2019-12-22 18:35
  
  from django.db import migrations, models
  import django.db.models.deletion
  import wagtail.core.blocks
  import wagtail.core.fields
  import wagtail.images.blocks
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('wagtailcore', '0041_group_collection_permissions_verbose_name_plural'),
          ('home', '0002_create_homepage'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='GeneralPage',
              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')),
                  ('date', models.DateField(verbose_name='Fecha publicación')),
                  ('description', models.CharField(blank=True, max_length=255, verbose_name='Descripción')),
                  ('image', models.ImageField(blank=True, null=True, upload_to='', verbose_name='Imagen principal')),
                  ('body', wagtail.core.fields.StreamField([('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('code', wagtail.core.blocks.StructBlock([('language', wagtail.core.blocks.ChoiceBlock(choices=[('bash', 'Bash/Shell'), ('css', 'CSS'), ('diff', 'diff'), ('html', 'HTML'), ('javascript', 'Javascript'), ('json', 'JSON'), ('python', 'Python'), ('scss', 'SCSS'), ('yaml', 'YAML')], help_text='Coding language', identifier='language', label='Language')), ('code', wagtail.core.blocks.TextBlock(identifier='code', label='Code'))], label='Code')), ('image', wagtail.images.blocks.ImageChooserBlock())], blank=True, null=True)),
              ],
              options={
                  'abstract': False,
              },
              bases=('wagtailcore.page',),
          ),
      ]
  