diff options
Diffstat (limited to 'app/blog/views.py')
-rw-r--r-- | app/blog/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |