diff options
author | lxf <sng@luxagraf.net> | 2019-02-20 16:17:31 +0000 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2019-02-20 16:17:31 +0000 |
commit | 55bb92fceb84cab8f52155d4265473806aca9d69 (patch) | |
tree | d993d8e0640f70cdcb38c8c5b2258289c62e128d /app/jrnl | |
parent | 56539b18afb9d6990ba6d4a0002aa37605feb34b (diff) |
fixed homepage bug
Diffstat (limited to 'app/jrnl')
-rw-r--r-- | app/jrnl/views.py | 2 |
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] |