diff --git a/home/migrations/0005_homepage_pole.py b/home/migrations/0005_homepage_pole.py new file mode 100644 index 0000000..fecf806 --- /dev/null +++ b/home/migrations/0005_homepage_pole.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.3 on 2020-12-11 10:37 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('home', '0004_auto_20201124_1559'), + ] + + operations = [ + migrations.AddField( + model_name='homepage', + name='pole', + field=models.CharField(blank=True, default='', max_length=100), + ), + ] diff --git a/home/models.py b/home/models.py index 67a4a8e..30a1f5d 100644 --- a/home/models.py +++ b/home/models.py @@ -10,6 +10,8 @@ from wagtail.admin.edit_handlers import FieldPanel, InlinePanel class HomePage(Page): body = RichTextField(blank=True) + pole = models.CharField(max_length=100, blank=True, default="") + address = RichTextField(blank=True) image = models.ForeignKey( 'wagtailimages.Image', on_delete=models.PROTECT, null=True, related_name='+' @@ -19,4 +21,5 @@ class HomePage(Page): FieldPanel('body', classname="full"), FieldPanel('address', classname="full"), ImageChooserPanel('image'), + FieldPanel('pole'), ] \ No newline at end of file diff --git a/media/images/chlastaci_hra.2e16d0ba.fill-400x200.jpg b/media/images/chlastaci_hra.2e16d0ba.fill-400x200.jpg new file mode 100644 index 0000000..2c129fb Binary files /dev/null and b/media/images/chlastaci_hra.2e16d0ba.fill-400x200.jpg differ diff --git a/media/images/chlastaci_hra.max-165x165.jpg b/media/images/chlastaci_hra.max-165x165.jpg new file mode 100644 index 0000000..85d7814 Binary files /dev/null and b/media/images/chlastaci_hra.max-165x165.jpg differ diff --git a/media/original_images/chlastaci_hra.jpg b/media/original_images/chlastaci_hra.jpg new file mode 100644 index 0000000..d3aa703 Binary files /dev/null and b/media/original_images/chlastaci_hra.jpg differ