summaryrefslogtreecommitdiff
path: root/app/builder
diff options
context:
space:
mode:
Diffstat (limited to 'app/builder')
-rw-r--r--app/builder/base.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index 97140e5..c27c599 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -139,9 +139,8 @@ class BuildWriting(Build):
self.write_file(fpath, t)
def build_homepage(self):
- banner = get_model('blog', 'entry').objects.filter(status__exact=1, home_page_banner=1)[:1]
- qs = get_model('blog', 'entry').objects.filter(status__exact=1)[:4]
- c = Context({'object_list': qs, 'banner':banner, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL})
+ qs = get_model('blog', 'entry').objects.filter(status__exact=1,home_page_banner=1)[:4]
+ c = Context({'object_list': qs, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL})
t = render_to_string('archives/homepage.html', c).encode('utf-8')
self.write_file('', t)