From 9740746e9ff31b7d9beffdd7b98bb6a0935a920b Mon Sep 17 00:00:00 2001 From: Matthew Piatetsky Date: Wed, 6 Mar 2019 10:48:15 -0500 Subject: [PATCH] update description to describe datetime as user local time --- .../migrations/0005_auto_20190306_1547.py | 20 +++++++++++++++++++ .../features/content_type_gating/models.py | 2 +- .../migrations/0005_auto_20190306_1546.py | 20 +++++++++++++++++++ .../features/course_duration_limits/models.py | 2 +- 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 openedx/features/content_type_gating/migrations/0005_auto_20190306_1547.py create mode 100644 openedx/features/course_duration_limits/migrations/0005_auto_20190306_1546.py diff --git a/openedx/features/content_type_gating/migrations/0005_auto_20190306_1547.py b/openedx/features/content_type_gating/migrations/0005_auto_20190306_1547.py new file mode 100644 index 0000000000..8259b40266 --- /dev/null +++ b/openedx/features/content_type_gating/migrations/0005_auto_20190306_1547.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.20 on 2019-03-06 15:47 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('content_type_gating', '0004_auto_20181128_1521'), + ] + + operations = [ + migrations.AlterField( + model_name='contenttypegatingconfig', + name='enabled_as_of', + field=models.DateTimeField(blank=True, default=None, help_text='If the configuration is Enabled, then all enrollments created after this date and time (user local time) will be affected.', null=True, verbose_name='Enabled As Of'), + ), + ] diff --git a/openedx/features/content_type_gating/models.py b/openedx/features/content_type_gating/models.py index f410294f0f..ee08d85410 100644 --- a/openedx/features/content_type_gating/models.py +++ b/openedx/features/content_type_gating/models.py @@ -47,7 +47,7 @@ class ContentTypeGatingConfig(StackedConfigurationModel): blank=True, help_text=_( 'If the configuration is Enabled, then all enrollments ' - 'created after this date and time (UTC) will be affected.' + 'created after this date and time (user local time) will be affected.' ) ) studio_override_enabled = models.NullBooleanField( diff --git a/openedx/features/course_duration_limits/migrations/0005_auto_20190306_1546.py b/openedx/features/course_duration_limits/migrations/0005_auto_20190306_1546.py new file mode 100644 index 0000000000..044b4f5f74 --- /dev/null +++ b/openedx/features/course_duration_limits/migrations/0005_auto_20190306_1546.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.20 on 2019-03-06 15:46 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('course_duration_limits', '0004_auto_20181128_1521'), + ] + + operations = [ + migrations.AlterField( + model_name='coursedurationlimitconfig', + name='enabled_as_of', + field=models.DateTimeField(blank=True, default=None, help_text='If the configuration is Enabled, then all enrollments created after this date and time (user local time) will be affected.', null=True, verbose_name='Enabled As Of'), + ), + ] diff --git a/openedx/features/course_duration_limits/models.py b/openedx/features/course_duration_limits/models.py index a1e4eaadce..ade35ceacc 100644 --- a/openedx/features/course_duration_limits/models.py +++ b/openedx/features/course_duration_limits/models.py @@ -47,7 +47,7 @@ class CourseDurationLimitConfig(StackedConfigurationModel): blank=True, help_text=_( 'If the configuration is Enabled, then all enrollments ' - 'created after this date and time (UTC) will be affected.' + 'created after this date and time (user local time) will be affected.' ) )