Permalink
Browse files

Forgot limit in homepage

  • Loading branch information...
1 parent 0c3b242 commit eb3dda8d46a6be26223dad9c7595ad6f9665ae95 @elpaso elpaso committed Oct 6, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 qgis-app/homepage.py
View
6 qgis-app/homepage.py
@@ -10,9 +10,9 @@ def homepage(request):
"""
Renders the home page
"""
- fresh = Plugin.fresh_objects.all()[:5]
- featured = Plugin.featured_objects.all() #.exclude(pk__in=[p.pk for p in fresh])[:5]
- popular = Plugin.popular_objects.all() #.exclude(pk__in=[p.pk for p in fresh]).exclude(pk__in=[p.pk for p in featured])[:5]
+ fresh = Plugin.fresh_objects.all()[:10]
+ featured = Plugin.featured_objects.all()[:10] #.exclude(pk__in=[p.pk for p in fresh])[:5]
+ popular = Plugin.popular_objects.all()[:10] #.exclude(pk__in=[p.pk for p in fresh]).exclude(pk__in=[p.pk for p in featured])[:5]
posts = Post.objects.all()[:5]
try:
content = FlatPage.objects.get(url='/').content

0 comments on commit eb3dda8

Please sign in to comment.