]> git.parisson.com Git - teleforma.git/commitdiff
add default value and migration
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 20 Jun 2022 15:51:57 +0000 (17:51 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 20 Jun 2022 15:51:57 +0000 (17:51 +0200)
teleforma/migrations/0018_conference_notified.py [new file with mode: 0644]
teleforma/models/core.py

diff --git a/teleforma/migrations/0018_conference_notified.py b/teleforma/migrations/0018_conference_notified.py
new file mode 100644 (file)
index 0000000..4a8a2bd
--- /dev/null
@@ -0,0 +1,18 @@
+# Generated by Django 3.2.3 on 2022-06-20 17:51
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('teleforma', '0017_conference_date_publish'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='conference',
+            name='notified',
+            field=models.BooleanField(default=False, verbose_name='notified'),
+        ),
+    ]
index 0782146485ddbf89e0b276c06d1ad322ceb213f1..5330be1e428d8f663deb41c258ca470cbfaa58e5 100755 (executable)
@@ -396,7 +396,7 @@ class Conference(models.Model):
     streaming = models.BooleanField(_('streaming'), default=True)
     web_class_group = models.ForeignKey('WebClassGroup', related_name='conferences', verbose_name=_('web class group'),
                                         blank=True, null=True, on_delete=models.SET_NULL)
-    notified = models.BooleanField(_('notified'))
+    notified = models.BooleanField(_('notified'), default=False)
 
     @property
     def description(self):