Commit 3aa2be44 by Clinton Blackburn

Made Video.image nullable

ECOM-3982
parent 2bf2a6c7
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course_metadata', '0003_auto_20160404_1734'),
]
operations = [
migrations.AlterField(
model_name='video',
name='image',
field=models.ForeignKey(to='course_metadata.Image', null=True, blank=True),
),
]
......@@ -51,7 +51,7 @@ class Image(AbstractMediaModel):
class Video(AbstractMediaModel):
""" Video model. """
image = models.ForeignKey(Image)
image = models.ForeignKey(Image, null=True, blank=True)
class LevelType(AbstractNamedModel):
......
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