From 83e49fa3c3ea9b9b3f74b7302df8825aaf4e3d18 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 21 Oct 2012 22:59:12 -0400 Subject: fixed homepage --- app/blog/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/blog/views.py') diff --git a/app/blog/views.py b/app/blog/views.py index 02acef4..e23acff 100644 --- a/app/blog/views.py +++ b/app/blog/views.py @@ -12,10 +12,10 @@ from photos.models import Photo, PhotoGallery #from chunks.models import Chunk def home(request): - featured = Entry.objects.filter(status__exact=1).select_related().latest() + qs = Entry.objects.filter(status__exact=1).select_related()[:4] #gallery = PhotoGallery.objects.latest() context = { - 'featured': featured, + 'object_list': qs, #'gallery': gallery } return render_to_response('archives/homepage.html', context, context_instance = RequestContext(request)) -- cgit v1.2.3-70-g09d2