From 9b284c34b36a6ecef2d23c62d0a801277cb02e0c Mon Sep 17 00:00:00 2001 From: bkfox Date: Mon, 12 Feb 2018 00:34:08 +0100 Subject: [PATCH] remove Schedule.end property + fix templates + add accessibility info --- aircox/models.py | 4 ---- .../templates/aircox_cms/program_page.html | 19 +++++++++++++------ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/aircox/models.py b/aircox/models.py index 7e1ed70..31c49b4 100755 --- a/aircox/models.py +++ b/aircox/models.py @@ -578,10 +578,6 @@ class Schedule(models.Model): } return before == now - @property - def end(self): - return self.time + utils.to_timedelta(self.duration) - def match(self, date = None, check_time = True): """ Return True if the given datetime matches the schedule diff --git a/aircox_cms/templates/aircox_cms/program_page.html b/aircox_cms/templates/aircox_cms/program_page.html index bfa7d46..cba6c46 100755 --- a/aircox_cms/templates/aircox_cms/program_page.html +++ b/aircox_cms/templates/aircox_cms/program_page.html @@ -12,18 +12,25 @@

{% trans "Schedule" %}

{% else %}