]> git.parisson.com Git - teleforma.git/commitdiff
Fix add newsitem error
authorYoan Le Clanche <yoanl@pilotsystems.net>
Tue, 5 Dec 2023 08:08:04 +0000 (09:08 +0100)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Tue, 5 Dec 2023 08:08:04 +0000 (09:08 +0100)
teleforma/migrations/0008_auto_20231204_1650.py [new file with mode: 0644]
teleforma/models/crfpa.py

diff --git a/teleforma/migrations/0008_auto_20231204_1650.py b/teleforma/migrations/0008_auto_20231204_1650.py
new file mode 100644 (file)
index 0000000..27cf5d3
--- /dev/null
@@ -0,0 +1,28 @@
+# Generated by Django 3.2.13 on 2023-12-04 16:50
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('teleforma', '0007_auto_20231123_0927'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='conference',
+            name='date_publish',
+            field=models.DateTimeField(blank=True, null=True, verbose_name='publishing date'),
+        ),
+        migrations.AddField(
+            model_name='conference',
+            name='notified',
+            field=models.BooleanField(default=False, verbose_name='notified'),
+        ),
+        migrations.AddField(
+            model_name='conference',
+            name='notified_live',
+            field=models.BooleanField(default=False, verbose_name='Notifié live'),
+        ),
+    ]
index 57d8691499e39e90b27fd96fa27cff295779d122..4d2dcef66cd742e50889e0cfbdfae14b91ecf25a 100755 (executable)
@@ -407,7 +407,7 @@ class NewsItem(models.Model):
     created = models.DateTimeField(_('date created'), auto_now_add=True)
     creator = models.ForeignKey(
         User, related_name='newsitems', verbose_name="Créateur", on_delete=models.CASCADE)
-    deleted = models.BooleanField('Supprimé')
+    deleted = models.BooleanField('Supprimé', default=False)
 
     class Meta(MetaCore):
         verbose_name = "Actualité"