Skip to content

Commit 50e0023

Browse files
committed
Merge branch 'main' into release/4
2 parents 7d69c98 + 6ae1158 commit 50e0023

35 files changed

Lines changed: 363 additions & 495 deletions
File renamed without changes.

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
include LICENSE README.md
1+
include LICENSE.txt README.md
22
graft coderedcms
33
global-exclude __pycache__
44
global-exclude *.py[co]
5+
prune **/.*_cache

azure-pipelines.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,29 @@ stages:
2727
vmImage: 'ubuntu-latest'
2828
strategy:
2929
matrix:
30-
py3.8:
31-
PYTHON_VERSION: '3.8'
32-
WAGTAIL_VERSION: '6.0.*'
33-
TEMPLATE: 'basic'
3430
py3.9:
3531
PYTHON_VERSION: '3.9'
36-
WAGTAIL_VERSION: '6.0.*'
32+
WAGTAIL_VERSION: '6.3.*'
3733
TEMPLATE: 'basic'
3834
py3.10:
3935
PYTHON_VERSION: '3.10'
40-
WAGTAIL_VERSION: '6.0.*'
36+
WAGTAIL_VERSION: '6.3.*'
4137
TEMPLATE: 'basic'
4238
py3.11:
4339
PYTHON_VERSION: '3.11'
44-
WAGTAIL_VERSION: '6.1.*'
40+
WAGTAIL_VERSION: '6.3.*'
4541
TEMPLATE: 'basic'
46-
py3.12_basic:
42+
py3.12:
4743
PYTHON_VERSION: '3.12'
48-
WAGTAIL_VERSION: '6.1.*'
44+
WAGTAIL_VERSION: '6.3.*'
4945
TEMPLATE: 'basic'
50-
py3.12_pro:
51-
PYTHON_VERSION: '3.12'
52-
WAGTAIL_VERSION: '6.1.*'
46+
py3.13_basic:
47+
PYTHON_VERSION: '3.13'
48+
WAGTAIL_VERSION: '6.3.*'
49+
TEMPLATE: 'basic'
50+
py3.13_pro:
51+
PYTHON_VERSION: '3.13'
52+
WAGTAIL_VERSION: '6.3.*'
5353
TEMPLATE: 'pro'
5454

5555
steps:
@@ -102,7 +102,7 @@ stages:
102102
- task: UsePythonVersion@0
103103
displayName: 'Use Python version'
104104
inputs:
105-
versionSpec: '3.12'
105+
versionSpec: '3.13'
106106
architecture: 'x64'
107107

108108
- script: python -m pip install -r requirements-ci.txt
@@ -147,7 +147,7 @@ stages:
147147
- task: UsePythonVersion@0
148148
displayName: 'Use Python version'
149149
inputs:
150-
versionSpec: '3.12'
150+
versionSpec: '3.13'
151151
architecture: 'x64'
152152

153153
- script: python -m pip install -r requirements-ci.txt

coderedcms/blocks/base_blocks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ class ButtonMixin(blocks.StructBlock):
127127
required=False,
128128
label=_("Button Size"),
129129
)
130+
button_title = blocks.CharBlock(
131+
required=False,
132+
max_length=255,
133+
label=_("Title"),
134+
)
130135

131136

132137
class CoderedAdvSettings(blocks.StructBlock):

coderedcms/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class Meta:
186186
max_length=16,
187187
choices=FORM_FIELD_CHOICES,
188188
blank=False,
189-
default="Single line text",
189+
default="singleline",
190190
)
191191

192192

coderedcms/models/page_models.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ class Meta:
713713
abstract = True
714714

715715
template = "coderedcms/pages/article_page.html"
716+
miniview_template = "coderedcms/pages/article_page.mini.html"
716717
search_template = "coderedcms/pages/article_page.search.html"
717718

718719
related_show_default = True
@@ -856,6 +857,7 @@ class Meta:
856857
("-date_display", "Display publish date, newest first"),
857858
) + CoderedWebPage.index_order_by_choices
858859

860+
# DEPRECATED: Remove these show_* options in 5.0
859861
show_images = models.BooleanField(
860862
default=True,
861863
verbose_name=_("Show images"),
@@ -890,6 +892,10 @@ class Meta:
890892
verbose_name = _("CodeRed Event")
891893
abstract = True
892894

895+
template = "coderedcms/pages/event_page.html"
896+
miniview_template = "coderedcms/pages/event_page.mini.html"
897+
search_template = "coderedcms/pages/event_page.search.html"
898+
893899
calendar_color = ColorField(
894900
blank=True,
895901
help_text=_(

coderedcms/project_template/basic/website/migrations/0001_initial.py

Lines changed: 12 additions & 20 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)