summaryrefslogtreecommitdiff
path: root/app/posts/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/posts/models.py')
-rw-r--r--app/posts/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/posts/models.py b/app/posts/models.py
index a19a50f..9f79c66 100644
--- a/app/posts/models.py
+++ b/app/posts/models.py
@@ -40,6 +40,7 @@ class TemplateType(models.IntegerChoices):
class Post(models.Model):
# an entry in a feed
+ user = models.ForeignKey(User, null=True, on_delete=models.SET_NULL)
title = models.CharField(max_length=512, blank=True, null=True)
body = models.TextField(blank=True, null=True)
url = models.CharField(max_length=512, blank=True, null=True)
@@ -51,6 +52,8 @@ class Post(models.Model):
update_frequency = models.BigIntegerField(help_text="In days")
products = models.ManyToManyField(ProductLink, blank=True, null=True)
needs_update = models.BooleanField(default=False)
+ is_live = models.BooleanField(default=True)
+
class Meta:
ordering = ('date_last_pub',)