summaryrefslogtreecommitdiff
path: root/app/jrnl/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/jrnl/models.py')
-rw-r--r--app/jrnl/models.py18
1 files changed, 1 insertions, 17 deletions
diff --git a/app/jrnl/models.py b/app/jrnl/models.py
index 874da74..da6d947 100644
--- a/app/jrnl/models.py
+++ b/app/jrnl/models.py
@@ -76,23 +76,6 @@ def extract_images(s):
return imgs
-class PostImage(models.Model):
- title = models.CharField(max_length=100)
- image = models.ImageField(upload_to="%s/%s" % (settings.IMAGES_ROOT, datetime.datetime.today().strftime("%Y")))
-
- def __unicode__(self):
- return self.title
-
- def post_image(self):
- return format_html('<img src="%s%s" alt="%s" class="postpic"/>' % (
- settings.IMAGES_URL,
- self.image.url.split('images')[1].split('/', 1)[1],
- self.title)
- )
-
- post_image.allow_tags = True
-
-
class Entry(models.Model):
title = models.CharField(max_length=200)
slug = models.SlugField(unique_for_date='pub_date')
@@ -247,6 +230,7 @@ class EntryAside(models.Model):
class HomepageCurrator(models.Model):
alt_text = models.CharField(max_length=200)
image_base_url = models.CharField(max_length=200)
+ images = models.ManyToManyField(LuxImage)
tag_line = models.CharField(max_length=200)
banner = models.ForeignKey(Entry, related_name="banner")
entry_list = models.ManyToManyField(Entry)