summaryrefslogtreecommitdiff
path: root/app/pages/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/pages/models.py')
-rw-r--r--app/pages/models.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/pages/models.py b/app/pages/models.py
index 7cf90ba..862a35c 100644
--- a/app/pages/models.py
+++ b/app/pages/models.py
@@ -44,11 +44,10 @@ class HomePage(models.Model):
simple model to control the featured article on the homepage
also allows me to fudge the "popular" section to be what I want
"""
- image_offset_vertical = models.CharField(max_length=20, help_text="add negative top margin to shift image (include css unit)")
- featured_image = models.ForeignKey(LuxImage, on_delete=models.CASCADE)
+ featured_image = models.ForeignKey(LuxImage, on_delete=models.CASCADE, null=True, blank=True)
tag_line = models.CharField(max_length=200, null=True, blank=True)
- featured = models.ForeignKey(Post, on_delete=models.CASCADE, related_name="banner")
- popular = models.ManyToManyField(Post, related_name="popular")
+ featured = models.ForeignKey(Post, on_delete=models.CASCADE, related_name="banner", null=True, blank=True)
+ #popular = models.ManyToManyField(Post, related_name="popular")
template_name = models.CharField(max_length=200, help_text="full path", null=True, blank=True)