diff --git a/uniweb/migrations/0129_uniwebhomepage_ecomail_newsletter_list_id_and_more.py b/uniweb/migrations/0129_uniwebhomepage_ecomail_newsletter_list_id_and_more.py new file mode 100644 index 0000000000000000000000000000000000000000..99e2b76ec410c4bc5b2a021b6d7ca5d4e7c47594 --- /dev/null +++ b/uniweb/migrations/0129_uniwebhomepage_ecomail_newsletter_list_id_and_more.py @@ -0,0 +1,23 @@ +# 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'), + ), + ] diff --git a/uniweb/models.py b/uniweb/models.py index 72934e7259f42e3e63534610c779efbca9ea0654..9bb7a4e0ea9e78f2420b1ce3b947b572a24c4b02 100644 --- a/uniweb/models.py +++ b/uniweb/models.py @@ -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