BOM-933: Fix type mismatches in various migrations 6 (#22170)
* Fix type mismatches in coursewaqre * Fix type mismatch in credit migrations * Fix type mismatch in status migrations * Fix type mismatch in user_api migrations * Review Fixes
This commit is contained in:
@@ -14,6 +14,6 @@ class Migration(migrations.Migration):
|
||||
migrations.AlterField(
|
||||
model_name='globalstatusmessage',
|
||||
name='message',
|
||||
field=models.TextField(help_text=b'<p>The contents of this field will be displayed as a warning banner on all views.</p><p>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 <strong>empty</strong> message text.</p><p>Finally, disable the global status message by adding another empty message with "enabled" unchecked.</p>', null=True, blank=True),
|
||||
field=models.TextField(help_text=u'<p>The contents of this field will be displayed as a warning banner on all views.</p><p>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 <strong>empty</strong> message text.</p><p>Finally, disable the global status message by adding another empty message with "enabled" unchecked.</p>', null=True, blank=True),
|
||||
),
|
||||
]
|
||||
|
||||
@@ -26,13 +26,13 @@ class GlobalStatusMessage(ConfigurationModel):
|
||||
message = models.TextField(
|
||||
blank=True,
|
||||
null=True,
|
||||
help_text='<p>The contents of this field will be displayed as a warning banner on all views.</p>'
|
||||
'<p>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 <strong>empty</strong> message text.</p>'
|
||||
'<p>Finally, disable the global status message by adding another empty message with "enabled" '
|
||||
'unchecked.</p>')
|
||||
help_text=u'<p>The contents of this field will be displayed as a warning banner on all views.</p>'
|
||||
u'<p>To override the banner message for a specific course, refer to the Course Message configuration. '
|
||||
u'Course Messages will only work if the global status message is enabled, so if you only want to add '
|
||||
u'a banner to specific courses without adding a global status message, you should add a global status '
|
||||
u'message with <strong>empty</strong> message text.</p>'
|
||||
u'<p>Finally, disable the global status message by adding another empty message with "enabled" '
|
||||
u'unchecked.</p>')
|
||||
|
||||
def full_message(self, course_key):
|
||||
""" Returns the full status message, including any course-specific status messages. """
|
||||
|
||||
Reference in New Issue
Block a user