Skip to content

Commit

Permalink
update wagtail to 6.3 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
m4ra authored and goapunk committed Dec 19, 2024
1 parent 6d0dbd1 commit bfedf69
Show file tree
Hide file tree
Showing 6 changed files with 865 additions and 10 deletions.
6 changes: 3 additions & 3 deletions apps/cms/blocks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from wagtail import blocks
from wagtail.documents.blocks import DocumentChooserBlock
from wagtail.images.blocks import ImageChooserBlock
from wagtail.images.blocks import ImageBlock


class CallToActionBlock(blocks.StructBlock):
Expand All @@ -14,7 +14,7 @@ class Meta:


class ImageCTABlock(blocks.StructBlock):
image = ImageChooserBlock(required=False)
image = ImageBlock(required=False)
body = blocks.RichTextBlock(required=False)
link = blocks.CharBlock(required=False)
link_text = blocks.CharBlock(required=False, max_length=50, label="Link Text")
Expand Down Expand Up @@ -109,7 +109,7 @@ class QuoteBlock(blocks.StructBlock):
color = blocks.ChoiceBlock(
choices=[("turquoise", "turquoise"), ("blue", "dark blue")], default=1
)
image = ImageChooserBlock()
image = ImageBlock()
quote = blocks.TextBlock()
quote_author = blocks.CharBlock(required=False)
link = blocks.URLBlock(required=False)
Expand Down
20 changes: 20 additions & 0 deletions apps/cms/images/migrations/0005_customimage_description.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 4.2.17 on 2024-12-12 12:35

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("a4_candy_cms_images", "0004_alter_customrendition_file"),
]

operations = [
migrations.AddField(
model_name="customimage",
name="description",
field=models.CharField(
blank=True, default="", max_length=255, verbose_name="description"
),
),
]
Loading

0 comments on commit bfedf69

Please sign in to comment.