From 281664a9d308481844a49508e36be92d71627697 Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Thu, 16 Jan 2014 15:34:14 -0500 Subject: [PATCH] Add dummy start dates to static_tab and course_info xmodules --- common/lib/xmodule/xmodule/html_module.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/common/lib/xmodule/xmodule/html_module.py b/common/lib/xmodule/xmodule/html_module.py index 2f87053abdbe..a821543c0b85 100644 --- a/common/lib/xmodule/xmodule/html_module.py +++ b/common/lib/xmodule/xmodule/html_module.py @@ -271,6 +271,12 @@ class StaticTabFields(object): scope=Scope.content, help="HTML for the additional pages" ) + # this exists purely to override the default start date + start = Date( + help="placeholder to make sure that Static Tabs are always active", + default=datetime.fromtimestamp(0, UTC), + scope=Scope.settings, + ) class StaticTabModule(StaticTabFields, HtmlModule): @@ -298,6 +304,12 @@ class CourseInfoFields(object): default="
    ", scope=Scope.content ) + # this exists purely to override the default start date + start = Date( + help="placeholder to make sure that Course Info is always active", + default=datetime.fromtimestamp(0, UTC), + scope=Scope.settings, + ) class CourseInfoModule(CourseInfoFields, HtmlModule):