From 01bf32418c2da0f2b5718d1d408fab17aed7b94b Mon Sep 17 00:00:00 2001 From: bkfox Date: Wed, 11 Jan 2017 19:26:23 +0100 Subject: [PATCH] target update --- aircox_cms/sections.py | 3 +-- aircox_cms/templates/aircox_cms/snippets/date_list.html | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/aircox_cms/sections.py b/aircox_cms/sections.py index 8014ddf..e5ae266 100755 --- a/aircox_cms/sections.py +++ b/aircox_cms/sections.py @@ -1016,8 +1016,7 @@ class SectionTimetable(SectionItem,DatedListBase): context.update(self.get_date_context()) context['object_list'] = self.get_queryset(context) context['target'] = self.target - - if self.nav_visible: + if not self.nav_visible: context['nav_dates'] = None return context diff --git a/aircox_cms/templates/aircox_cms/snippets/date_list.html b/aircox_cms/templates/aircox_cms/snippets/date_list.html index ab6dfd5..1be873a 100755 --- a/aircox_cms/templates/aircox_cms/snippets/date_list.html +++ b/aircox_cms/templates/aircox_cms/snippets/date_list.html @@ -4,7 +4,6 @@
{% if nav_dates %}