Skip to content
Snippets Groups Projects
Commit 1ffcaf76 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

Add ecomail newlsetter ID to uniweb

parent 75f6decc
Branches
No related tags found
2 merge requests!1280Release,!1278Release
# Generated by Django 5.0.7 on 2025-03-24 11:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('uniweb', '0128_alter_uniwebarticlepage_content_and_more'),
]
operations = [
migrations.AddField(
model_name='uniwebhomepage',
name='ecomail_newsletter_list_id',
field=models.IntegerField(blank=True, null=True, verbose_name='ID Ecomail newsletteru'),
),
migrations.AddField(
model_name='uniwebhomepage',
name='ecomail_newsletter_list_tags',
field=models.CharField(blank=True, help_text="Oddělte čárkou, například 'Tag1,Tag2,Tag3'. Bez mezer.", max_length=128, null=True, verbose_name='Tagy k přidání novým odběratelům na Ecomailu'),
),
]
......@@ -153,6 +153,20 @@ class UniwebHomePage(
)
content_is_centered = models.BooleanField("Vycentrovat obsah", default=False)
ecomail_newsletter_list_id = models.IntegerField(
"ID Ecomail newsletteru",
blank=True,
null=True,
)
ecomail_newsletter_list_tags = models.CharField(
"Tagy k přidání novým odběratelům na Ecomailu",
max_length=128,
blank=True,
null=True,
help_text="Oddělte čárkou, například 'Tag1,Tag2,Tag3'. Bez mezer.",
)
### PANELS
content_panels = MainHomePageMixin.content_panels + [
......@@ -183,6 +197,13 @@ class UniwebHomePage(
],
"Zarovnání obsahu",
),
MultiFieldPanel(
[
FieldPanel("ecomail_newsletter_list_id"),
FieldPanel("ecomail_newsletter_list_tags"),
],
"Newsletter",
),
FieldPanel("fallback_image"),
] + ScrollProgressMixin.settings_panels
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment