Commit cdab4266 by Nimisha Asthagiri

Reuse DEFAULT_START_DATE definition.

parent 4091bd15
......@@ -4,12 +4,14 @@ Support for inheritance of fields down an XBlock hierarchy.
from __future__ import absolute_import
from datetime import datetime
from django.conf import settings
from pytz import UTC
from xmodule.partitions.partitions import UserPartition
from xblock.fields import Scope, Boolean, String, Float, XBlockMixin, Dict, Integer, List
from xblock.runtime import KeyValueStore, KvsFieldData
from xmodule.fields import Date, Timedelta
from django.conf import settings
from ..course_metadata_utils import DEFAULT_START_DATE
# Make '_' a no-op so we can scrape strings
......@@ -36,7 +38,7 @@ class InheritanceMixin(XBlockMixin):
)
start = Date(
help="Start time when this module is visible",
default=datetime(2030, 1, 1, tzinfo=UTC),
default=DEFAULT_START_DATE,
scope=Scope.settings
)
due = Date(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment