lms_xblock: Explicitly Set fields to unicode to avoid migration
This commit is contained in:
Ayub khan
2019-10-22 15:29:36 +05:00
parent 2ac5173eb4
commit 584d00dba9
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ class Migration(migrations.Migration):
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('change_date', models.DateTimeField(auto_now_add=True, verbose_name='Change date')),
('enabled', models.BooleanField(default=False, verbose_name='Enabled')),
('disabled_blocks', models.TextField(default=b'about course_info static_tab', help_text=b'Space-separated list of XBlocks on which XBlockAsides should never render.')),
('disabled_blocks', models.TextField(default=u'about course_info static_tab', help_text=u'Space-separated list of XBlocks on which XBlockAsides should never render.')),
('changed_by', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, editable=False, to=settings.AUTH_USER_MODEL, null=True, verbose_name='Changed by')),
],
options={

View File

@@ -24,8 +24,8 @@ class XBlockAsidesConfig(ConfigurationModel):
app_label = "lms_xblock"
disabled_blocks = TextField(
default="about course_info static_tab",
help_text="Space-separated list of XBlocks on which XBlockAsides should never render."
default=u"about course_info static_tab",
help_text=u"Space-separated list of XBlocks on which XBlockAsides should never render."
)
@classmethod