Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
course-discovery
Commits
3aa2be44
Commit
3aa2be44
authored
Apr 04, 2016
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made Video.image nullable
ECOM-3982
parent
2bf2a6c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletions
+20
-1
course_discovery/apps/course_metadata/migrations/0004_auto_20160404_1944.py
+19
-0
course_discovery/apps/course_metadata/models.py
+1
-1
No files found.
course_discovery/apps/course_metadata/migrations/0004_auto_20160404_1944.py
0 → 100644
View file @
3aa2be44
# -*- 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
),
),
]
course_discovery/apps/course_metadata/models.py
View file @
3aa2be44
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment