mattdrayer/add-bulk-sku-default-none: Fix MySQL insert error

This commit is contained in:
Matt Drayer
2016-05-12 23:20:20 -04:00
parent 4d08379bfc
commit e65dcc37a7
2 changed files with 2 additions and 1 deletions

View File

@@ -102,6 +102,7 @@ class CourseMode(models.Model):
max_length=255,
null=True,
blank=True,
default=None, # Need this in order to set DEFAULT NULL on the database column
verbose_name="Bulk SKU",
help_text=_(
u"This is the bulk SKU (stock keeping unit) of this mode in the external ecommerce service."