Reuse DEFAULT_START_DATE definition.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user