From b7cfbe0ce61f3350a74b82009a73ca7b48a03f5c Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Wed, 29 May 2013 11:40:53 -0400 Subject: [PATCH] Add safety check for start dates unbound --- cms/templates/edit_subsection.html | 4 ++-- cms/templates/overview.html | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/cms/templates/edit_subsection.html b/cms/templates/edit_subsection.html index 4aae070ca1..cbce91ab44 100644 --- a/cms/templates/edit_subsection.html +++ b/cms/templates/edit_subsection.html @@ -37,13 +37,13 @@
diff --git a/cms/templates/overview.html b/cms/templates/overview.html index 0b82d76943..43d0afc263 100644 --- a/cms/templates/overview.html +++ b/cms/templates/overview.html @@ -154,8 +154,12 @@

<% - start_date_str = section.lms.start.strftime('%m/%d/%Y') - start_time_str = section.lms.start.strftime('%H:%M') + if section.lms.start is not None: + start_date_str = section.lms.start.strftime('%m/%d/%Y') + start_time_str = section.lms.start.strftime('%H:%M') + else: + start_date_str = '' + start_time_str = '' %> %if section.lms.start is None: This section has not been released.