${site_status_msg}
-diff --git a/common/djangoapps/status/migrations/0002_update_help_text.py b/common/djangoapps/status/migrations/0002_update_help_text.py new file mode 100644 index 0000000000..bebdacafe3 --- /dev/null +++ b/common/djangoapps/status/migrations/0002_update_help_text.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('status', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='globalstatusmessage', + name='message', + field=models.TextField(help_text=b'
The contents of this field will be displayed as a warning banner on all views.
To override the banner message for a specific course, refer to the Course Message configuration. Course Messages will only work if the global status message is enabled, so if you only want to add a banner to specific courses without adding a global status message, you should add a global status message with empty message text.
Finally, disable the global status message by adding another empty message with "enabled" unchecked.
', null=True, blank=True), + ), + ] diff --git a/common/djangoapps/status/models.py b/common/djangoapps/status/models.py index 2f6c5dc013..94dfe2fb36 100644 --- a/common/djangoapps/status/models.py +++ b/common/djangoapps/status/models.py @@ -14,7 +14,16 @@ class GlobalStatusMessage(ConfigurationModel): """ Model that represents the current status message. """ - message = models.TextField(blank=True, null=True) + message = models.TextField( + blank=True, + null=True, + help_text='The contents of this field will be displayed as a warning banner on all views.
' + 'To override the banner message for a specific course, refer to the Course Message configuration. ' + 'Course Messages will only work if the global status message is enabled, so if you only want to add ' + 'a banner to specific courses without adding a global status message, you should add a global status ' + 'message with empty message text.
' + 'Finally, disable the global status message by adding another empty message with "enabled" ' + 'unchecked.
') def full_message(self, course_key): """ Returns the full status message, including any course-specific status messages. """ @@ -26,7 +35,7 @@ class GlobalStatusMessage(ConfigurationModel): if course_key: try: course_home_message = self.coursemessage_set.get(course_key=course_key) - # Don't add the message if course_home_message is blank. + # Don't override the message if course_home_message is blank. if course_home_message: msg = u"{}${site_status_msg}
-${site_status_msg}
-