summaryrefslogtreecommitdiff
path: root/app/jrnl/views.py
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2019-02-20 16:17:31 +0000
committerlxf <sng@luxagraf.net>2019-02-20 16:17:31 +0000
commit55bb92fceb84cab8f52155d4265473806aca9d69 (patch)
treed993d8e0640f70cdcb38c8c5b2258289c62e128d /app/jrnl/views.py
parent56539b18afb9d6990ba6d4a0002aa37605feb34b (diff)
fixed homepage bug
Diffstat (limited to 'app/jrnl/views.py')
-rw-r--r--app/jrnl/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/jrnl/views.py b/app/jrnl/views.py
index 95b5c64..43ca2d9 100644
--- a/app/jrnl/views.py
+++ b/app/jrnl/views.py
@@ -115,7 +115,7 @@ class HomepageList(ListView):
def get_queryset(self):
queryset = super(HomepageList, self).get_queryset()
self.home = self.get_home()
- return queryset.filter(status__exact=1).order_by('-pub_date').exclude().select_related('location').select_related('featured_image')[2:10]
+ return queryset.filter(status__exact=1).order_by('-pub_date').exclude().select_related('location').select_related('featured_image')[1:9]
def get_template_names(self):
return ['%s' % self.home.template_name]