From 4321d030226c03d7694828d5e8f88cbdeea055a0 Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Mon, 21 Aug 2023 14:17:03 +0200 Subject: [PATCH] Add "permanent" field : https://trackers.pilotsystems.net/prebarreau/0703 --- .../migrations/0017_conference_permanent.py | 18 ++++++++++++++++++ teleforma/models/core.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 teleforma/migrations/0017_conference_permanent.py diff --git a/teleforma/migrations/0017_conference_permanent.py b/teleforma/migrations/0017_conference_permanent.py new file mode 100644 index 00000000..402f10e8 --- /dev/null +++ b/teleforma/migrations/0017_conference_permanent.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.3 on 2023-08-21 10:56 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('teleforma', '0016_conference_animation_text'), + ] + + operations = [ + migrations.AddField( + model_name='conference', + name='permanent', + field=models.BooleanField(default=False, verbose_name='Permanent'), + ), + ] diff --git a/teleforma/models/core.py b/teleforma/models/core.py index 47442efc..956e2709 100755 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -932,6 +932,7 @@ class Conference(Displayable, WebclassMixin, ProductCodeMixin, SuggestionsMixin) comment = ShortTextField(_('comment'), max_length=255, blank=True) date_begin = models.DateTimeField(_('begin date'), null=True, blank=True) date_end = models.DateTimeField(_('end date'), null=True, blank=True) + permanent = models.BooleanField('Permanent', default=False, help_text="Sur la fiche conférence, s'affichera \"Selon vos disponibilités\" à la place de la date.") duration = DurationField(_('approximative duration')) price = models.FloatField(_('price'), blank=True, null=True) approved = models.BooleanField(_('approved'), default=True) -- 2.39.5