Commit 238ae554 by Matt Drayer

Merge pull request #12456 from edx/mattdrayer/add-bulk-sku-default-none

mattdrayer/add-bulk-sku-default-none: Fix MySQL insert error
parents 7bca66c2 e65dcc37
...@@ -14,6 +14,6 @@ class Migration(migrations.Migration): ...@@ -14,6 +14,6 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='coursemode', model_name='coursemode',
name='bulk_sku', name='bulk_sku',
field=models.CharField(help_text='This is the bulk SKU (stock keeping unit) of this mode in the external ecommerce service.', max_length=255, null=True, verbose_name=b'Bulk SKU', blank=True), field=models.CharField(default=None, max_length=255, blank=True, help_text='This is the bulk SKU (stock keeping unit) of this mode in the external ecommerce service.', null=True, verbose_name=b'Bulk SKU'),
), ),
] ]
...@@ -102,6 +102,7 @@ class CourseMode(models.Model): ...@@ -102,6 +102,7 @@ class CourseMode(models.Model):
max_length=255, max_length=255,
null=True, null=True,
blank=True, blank=True,
default=None, # Need this in order to set DEFAULT NULL on the database column
verbose_name="Bulk SKU", verbose_name="Bulk SKU",
help_text=_( help_text=_(
u"This is the bulk SKU (stock keeping unit) of this mode in the external ecommerce service." u"This is the bulk SKU (stock keeping unit) of this mode in the external ecommerce service."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment