From 7c9a627d41041806cd8bda8b6503a08656b12d8c Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Wed, 27 Jul 2022 00:18:06 +0300 Subject: [PATCH] Require explicit publishing from creator --- webapp/migrations/0093_auto_20220727_0017.py | 18 ++++++++++++++++++ webapp/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 webapp/migrations/0093_auto_20220727_0017.py diff --git a/webapp/migrations/0093_auto_20220727_0017.py b/webapp/migrations/0093_auto_20220727_0017.py new file mode 100644 index 0000000..bdc09e7 --- /dev/null +++ b/webapp/migrations/0093_auto_20220727_0017.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.28 on 2022-07-26 21:17 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("webapp", "0092_auto_20220727_0016"), + ] + + operations = [ + migrations.AlterField( + model_name="basefeed", + name="isPublished", + field=models.BooleanField(default=False), + ), + ] diff --git a/webapp/models.py b/webapp/models.py index 49aa7ac..9409926 100644 --- a/webapp/models.py +++ b/webapp/models.py @@ -49,7 +49,7 @@ class BaseFeed(models.Model): tags = models.ManyToManyField(Tag, related_name="feeds", blank=True) # Require explicit publishing from creator - isPublished = models.BooleanField(default=True) + isPublished = models.BooleanField(default=False) # Automatically publish after this time, unless still in draft (!isPublished) publishAt = models.DateTimeField(default=timezone.now) autoUnpublish = models.BooleanField(default=False)