Skip to content

Commit e869df6

Browse files
committed
Update Django and Wagtail
1 parent be0c364 commit e869df6

5 files changed

Lines changed: 216 additions & 205 deletions

File tree

config/settings/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
"wagtail.api.v2",
8686
"rest_framework",
8787
"wagtail_headless_preview",
88+
"django.contrib.postgres"
8889
]
8990

9091
SITE_ID = 1

etna/articles/blocks.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,18 @@ class PromotedItemBlock(SectionDepthAwareStructBlock):
4848
url = blocks.URLBlock(label="External URL", help_text="URL for the external page")
4949
target_blank = blocks.BooleanBlock(
5050
label=format_html(
51-
"%s <p style='font-size: 11px;'>%s</p>"
52-
% ("Should this URL open in a new tab?", "Tick the box if 'yes'")
51+
"%s <p style='font-size: 11px;'>%s</p>",
52+
"Should this URL open in a new tab?", "Tick the box if 'yes'"
5353
),
5454
required=False,
5555
)
5656
cta_label = blocks.CharBlock(
5757
label="Call to action label",
5858
max_length=50,
5959
help_text=format_html(
60-
"%s <strong>%s</strong>'."
61-
% (
62-
"The text displayed on the button for your URL. If your URL links to an external site, "
63-
+ "please add the name of the site users will land on, and what they will find on this page. "
64-
+ "For example 'Watch our short film ",
60+
"%s <strong>%s</strong>'.",
61+
"The text displayed on the button for your URL. If your URL links to an external site, please add the name of the site users will land on, and what they will find on this page. For example 'Watch our short film ",
6562
"about Shakespeare on YouTube",
66-
)
6763
),
6864
)
6965
image = NoCaptionImageBlock(

0 commit comments

Comments
 (0)