]> git.parisson.com Git - teleforma.git/commitdiff
Add "permanent" field : https://trackers.pilotsystems.net/prebarreau/0703
authorYoan Le Clanche <yoanl@pilotsystems.net>
Mon, 21 Aug 2023 12:17:03 +0000 (14:17 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Mon, 21 Aug 2023 12:17:03 +0000 (14:17 +0200)
teleforma/migrations/0017_conference_permanent.py [new file with mode: 0644]
teleforma/models/core.py

diff --git a/teleforma/migrations/0017_conference_permanent.py b/teleforma/migrations/0017_conference_permanent.py
new file mode 100644 (file)
index 0000000..402f10e
--- /dev/null
@@ -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'),
+        ),
+    ]
index 47442efc464c0ef6f72e74d73b793de25ef2410b..956e2709fb431959e2fa99bd12d9d2445e3df529 100755 (executable)
@@ -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)