summaryrefslogtreecommitdiff
path: root/app/blog/views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2012-10-21 22:59:12 -0400
committerluxagraf <sng@luxagraf.net>2012-10-21 22:59:12 -0400
commit83e49fa3c3ea9b9b3f74b7302df8825aaf4e3d18 (patch)
treec82ce28b70bf721d5c14079b6f1000f090fe3adf /app/blog/views.py
parent6c20194f9ac2347c4618f690c0a6b53ce742bbf0 (diff)
fixed homepage
Diffstat (limited to 'app/blog/views.py')
-rw-r--r--app/blog/views.py4
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))