From ac8ffa4caae686bb9274fcaab93bc1cbd5d5d072 Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Thu, 8 Jun 2023 12:00:25 +0200 Subject: [PATCH] Add "animation_text" field : https://trackers.pilotsystems.net/prebarreau/0669 --- .../migrations/0015_seminar_animation_text.py | 18 ++++++++++++++++++ .../0016_conference_animation_text.py | 18 ++++++++++++++++++ teleforma/models/core.py | 1 + teleforma/models/pro.py | 1 + 4 files changed, 38 insertions(+) create mode 100644 teleforma/migrations/0015_seminar_animation_text.py create mode 100644 teleforma/migrations/0016_conference_animation_text.py diff --git a/teleforma/migrations/0015_seminar_animation_text.py b/teleforma/migrations/0015_seminar_animation_text.py new file mode 100644 index 00000000..26aae81e --- /dev/null +++ b/teleforma/migrations/0015_seminar_animation_text.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.3 on 2023-06-08 11:25 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('teleforma', '0014_testimonial_sent'), + ] + + operations = [ + migrations.AddField( + model_name='seminar', + name='animation_text', + field=models.CharField(blank=True, help_text="Affiché au dessus de l'intervenant, par exemple 'formation animée par'", max_length=1024, null=True, verbose_name="Text d'animation"), + ), + ] diff --git a/teleforma/migrations/0016_conference_animation_text.py b/teleforma/migrations/0016_conference_animation_text.py new file mode 100644 index 00000000..639f6da2 --- /dev/null +++ b/teleforma/migrations/0016_conference_animation_text.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.3 on 2023-06-08 11:51 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('teleforma', '0015_seminar_animation_text'), + ] + + operations = [ + migrations.AddField( + model_name='conference', + name='animation_text', + field=models.CharField(blank=True, help_text="Affiché au dessus de l'intervenant, par exemple 'formation animée par'", max_length=1024, null=True, verbose_name="Text d'animation"), + ), + ] diff --git a/teleforma/models/core.py b/teleforma/models/core.py index e13164e6..2f9da4e2 100755 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -946,6 +946,7 @@ class Conference(Displayable, WebclassMixin, ProductCodeMixin, SuggestionsMixin) help_text="Affiché sur la page formation du shop", null=True, blank=True) + animation_text = models.CharField("Text d'animation", help_text="Affiché au dessus de l'intervenant, par exemple 'formation animée par'", max_length=1024, blank=True, null=True) plan = tinymce.models.HTMLField("Plan détaillé", help_text="Affiché sur la page formation du shop. Ajouter dans le code source <div class=\"break\"></div> pour choisir ou couper la colonne.", null=True, diff --git a/teleforma/models/pro.py b/teleforma/models/pro.py index a9fbddf0..557a889e 100644 --- a/teleforma/models/pro.py +++ b/teleforma/models/pro.py @@ -125,6 +125,7 @@ class Seminar(ClonableMixin, Displayable, ProductCodeMixin, SuggestionsMixin): help_text="Affiché sur la page formation du shop", null=True, blank=True) + animation_text = models.CharField("Text d'animation", help_text="Affiché au dessus de l'intervenant, par exemple 'formation animée par'", max_length=1024, blank=True, null=True) plan = tinymce.models.HTMLField("Plan détaillé", help_text="Affiché sur la page formation du shop. Ajouter dans le code source <div class=\"break\"></div> pour choisir ou couper la colonne.", null=True, -- 2.39.5