Browse Source

testovaci zmena

master
Lukáš Helcl 4 years ago
parent
commit
135ef44840
  1. 18
      home/migrations/0005_homepage_pole.py
  2. 3
      home/models.py
  3. BIN
      media/images/chlastaci_hra.2e16d0ba.fill-400x200.jpg
  4. BIN
      media/images/chlastaci_hra.max-165x165.jpg
  5. BIN
      media/original_images/chlastaci_hra.jpg

18
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),
),
]

3
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'),
]

BIN
media/images/chlastaci_hra.2e16d0ba.fill-400x200.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
media/images/chlastaci_hra.max-165x165.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
media/original_images/chlastaci_hra.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Loading…
Cancel
Save