diff options
author | luxagraf <sng@luxagraf.net> | 2012-10-21 22:59:12 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2012-10-21 22:59:12 -0400 |
commit | 83e49fa3c3ea9b9b3f74b7302df8825aaf4e3d18 (patch) | |
tree | c82ce28b70bf721d5c14079b6f1000f090fe3adf /app/blog/views.py | |
parent | 6c20194f9ac2347c4618f690c0a6b53ce742bbf0 (diff) |
fixed homepage
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)) |