From a147c2eff2eb58a2dbef7fc1605eec8ae61c3590 Mon Sep 17 00:00:00 2001
From: "jindra12.underdark" <jindra12.underdark@gmail.com>
Date: Mon, 15 May 2023 12:39:23 +0200
Subject: [PATCH] Add default link to newsletter form

#197
---
 .../0114_alter_districtcustompage_content_and_more.py       | 6 +++---
 shared/blocks.py                                            | 2 +-
 .../0044_alter_uniwebflexiblepage_content_and_more.py       | 6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/district/migrations/0114_alter_districtcustompage_content_and_more.py b/district/migrations/0114_alter_districtcustompage_content_and_more.py
index 5ae63038..6bf24af5 100644
--- a/district/migrations/0114_alter_districtcustompage_content_and_more.py
+++ b/district/migrations/0114_alter_districtcustompage_content_and_more.py
@@ -1,4 +1,4 @@
-# Generated by Django 4.1.8 on 2023-05-14 22:09
+# Generated by Django 4.1.8 on 2023-05-15 10:36
 
 import django.db.models.deletion
 import wagtail.blocks
@@ -6174,7 +6174,7 @@ class Migration(migrations.Migration):
                                             (
                                                 "consent",
                                                 wagtail.blocks.RichTextBlock(
-                                                    default="Souhlasím se zpracováním osobních údajů",
+                                                    default='Souhlasím se <a href="https://www.pirati.cz/ochrana-osobnich-udaju/">zpracováním osobních údajů</a>',
                                                     features=[
                                                         "h2",
                                                         "h3",
@@ -6431,7 +6431,7 @@ class Migration(migrations.Migration):
                                             (
                                                 "consent",
                                                 wagtail.blocks.RichTextBlock(
-                                                    default="Souhlasím se zpracováním osobních údajů",
+                                                    default='Souhlasím se <a href="https://www.pirati.cz/ochrana-osobnich-udaju/">zpracováním osobních údajů</a>',
                                                     features=[
                                                         "h2",
                                                         "h3",
diff --git a/shared/blocks.py b/shared/blocks.py
index eec97ba7..9c5fe5f6 100644
--- a/shared/blocks.py
+++ b/shared/blocks.py
@@ -1108,7 +1108,7 @@ def NewsletterSubscriptionBlockFactory(page_type: str):
                     blocks.RichTextBlock(
                         label="Souhlas se zpracováním osobních údajů",
                         features=RICH_TEXT_DEFAULT_FEATURES,
-                        default="Souhlasím se zpracováním osobních údajů",
+                        default='Souhlasím se <a href="https://www.pirati.cz/ochrana-osobnich-udaju/">zpracováním osobních údajů</a>',
                     ),
                 ),
                 (
diff --git a/uniweb/migrations/0044_alter_uniwebflexiblepage_content_and_more.py b/uniweb/migrations/0044_alter_uniwebflexiblepage_content_and_more.py
index 78b01cda..4ba25daa 100644
--- a/uniweb/migrations/0044_alter_uniwebflexiblepage_content_and_more.py
+++ b/uniweb/migrations/0044_alter_uniwebflexiblepage_content_and_more.py
@@ -1,4 +1,4 @@
-# Generated by Django 4.1.8 on 2023-05-14 22:09
+# Generated by Django 4.1.8 on 2023-05-15 10:36
 
 import django.db.models.deletion
 import wagtail.blocks
@@ -645,7 +645,7 @@ class Migration(migrations.Migration):
                                             (
                                                 "consent",
                                                 wagtail.blocks.RichTextBlock(
-                                                    default="Souhlasím se zpracováním osobních údajů",
+                                                    default='Souhlasím se <a href="https://www.pirati.cz/ochrana-osobnich-udaju/">zpracováním osobních údajů</a>',
                                                     features=[
                                                         "h2",
                                                         "h3",
@@ -1382,7 +1382,7 @@ class Migration(migrations.Migration):
                                             (
                                                 "consent",
                                                 wagtail.blocks.RichTextBlock(
-                                                    default="Souhlasím se zpracováním osobních údajů",
+                                                    default='Souhlasím se <a href="https://www.pirati.cz/ochrana-osobnich-udaju/">zpracováním osobních údajů</a>',
                                                     features=[
                                                         "h2",
                                                         "h3",
-- 
GitLab