diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/blog/models.py | 3 | ||||
-rw-r--r-- | app/blog/views.py | 1 |
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, } |