diff options
author | luxagraf <sng@luxagraf.net> | 2015-01-25 21:13:18 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2015-01-25 21:13:18 -0500 |
commit | 83233b9a4c6f29a65d2a337f89951e8d25190ee9 (patch) | |
tree | 283c4b518c07847925c86251525feee3bc265487 /app/builder/base.py | |
parent | 07dc722b5b244a21fbb8aa4e0bdafb53e1598330 (diff) |
fixed homepage layout and builder
Diffstat (limited to 'app/builder/base.py')
-rw-r--r-- | app/builder/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/builder/base.py b/app/builder/base.py index b18e8be..a706261 100644 --- a/app/builder/base.py +++ b/app/builder/base.py @@ -140,7 +140,7 @@ class BuildWriting(Build): def build_homepage(self): obj = get_model('blog', 'homepagecurrator').objects.get(pk=1) - recent = get_model('blog', 'entry').objects.filter(status__exact=1)[:3] + recent = get_model('blog', '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') |