diff --git a/common/djangoapps/status/migrations/0003_help_text_note_html.py b/common/djangoapps/status/migrations/0003_help_text_note_html.py new file mode 100644 index 0000000000..5bddb37594 --- /dev/null +++ b/common/djangoapps/status/migrations/0003_help_text_note_html.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.18 on 2023-05-10 01:28 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('status', '0002_update_help_text'), + ] + + operations = [ + migrations.AlterField( + model_name='globalstatusmessage', + name='message', + field=models.TextField(blank=True, help_text='
The contents of this field will be displayed as HTML in 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), + ), + ] diff --git a/common/djangoapps/status/models.py b/common/djangoapps/status/models.py index 9502bdde6a..2d37faedb8 100644 --- a/common/djangoapps/status/models.py +++ b/common/djangoapps/status/models.py @@ -23,7 +23,7 @@ class GlobalStatusMessage(ConfigurationModel): message = models.TextField( blank=True, null=True, - help_text='The contents of this field will be displayed as a warning banner on all views.
' + help_text='The contents of this field will be displayed as HTML in a warning banner on all views.
' 'To override the banner message for a specific course, refer to the Course Message configuration. ' # lint-amnesty, pylint: disable=line-too-long '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 ' # lint-amnesty, pylint: disable=line-too-long