summaryrefslogtreecommitdiff
path: root/app/blog
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-07-15 11:33:29 -0400
committerluxagraf <sng@luxagraf.net>2015-07-15 11:33:29 -0400
commit9451ca97dc0ad4e33c0f597ce1afb2ca99d04a08 (patch)
tree7ddc24e9e0fd1870b8e835e1fd46c5a271edbf6b /app/blog
parent9b268ceb5bb1abe13657a187653dbe99bb5638bc (diff)
fixed homepage to make rotating out banner a bit easier
Diffstat (limited to 'app/blog')
-rw-r--r--app/blog/models.py3
-rw-r--r--app/blog/views.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/app/blog/models.py b/app/blog/models.py
index fbbf1db..8e85bfe 100644
--- a/app/blog/models.py
+++ b/app/blog/models.py
@@ -167,6 +167,9 @@ class EntryAside(models.Model):
entry = models.ForeignKey(Entry)
class HomepageCurrator(models.Model):
+ alt_text = models.CharField(max_length=200)
+ image_base_url = models.CharField(max_length=200)
+ tag_line = models.CharField(max_length=200)
banner = models.ForeignKey(Entry, related_name="banner")
entry_list = models.ManyToManyField(Entry)
template_name = models.CharField(max_length=200,help_text="full path")
diff --git a/app/blog/views.py b/app/blog/views.py
index 498926c..be04e6c 100644
--- a/app/blog/views.py
+++ b/app/blog/views.py
@@ -14,6 +14,7 @@ def home(request):
template = obj.template_name
recent = Entry.objects.filter(status__exact=1)[:4]
context = {
+ 'IMAGES_URL': settings.IMAGES_URL,
'homepage': obj,
'recent': recent,
}