summaryrefslogtreecommitdiff
path: root/app/builder/base.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-02-04 11:56:26 -0500
committerluxagraf <sng@luxagraf.net>2016-02-04 11:56:26 -0500
commit730c22cba0f92e7801c47e4d79b0e1ab719ed69c (patch)
treefdb55989e44cfca3bb76eccf63013a2fd3c7be29 /app/builder/base.py
parent83345be3f40f14cc2a09bac9b4d03e333c9b8d2f (diff)
changed build script for homepage to new format
Diffstat (limited to 'app/builder/base.py')
-rw-r--r--app/builder/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index f44738d..9ac8ec9 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -266,8 +266,8 @@ class BuildWriting(Build):
self.write_file(fpath, t)
def build_homepage(self):
- obj = apps.get_model('blog', 'homepagecurrator').objects.get(pk=1)
- recent = apps.get_model('blog', 'entry').objects.filter(status__exact=1)[:4]
+ obj = apps.get_model('jrnl', 'homepagecurrator').objects.get(pk=1)
+ recent = apps.get_model('jrnl', 'entry').objects.filter(status__exact=1)[:4]
template = obj.template_name
c = Context({'homepage': obj, 'recent': recent, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL})
t = render_to_string(template, c).encode('utf-8')