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
c7d0af60
Commit
c7d0af60
authored
Apr 05, 2016
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #57 from edx/clintonb/abstract-model-fix
Fixed abstract model declaration
parents
82ce9b92
70af296f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
course_discovery/apps/course_metadata/migrations/0001_initial.py
+0
-0
course_discovery/apps/course_metadata/models.py
+3
-0
No files found.
course_discovery/apps/course_metadata/migrations/0001_initial.py
View file @
c7d0af60
This diff is collapsed.
Click to expand it.
course_discovery/apps/course_metadata/models.py
View file @
c7d0af60
...
@@ -42,6 +42,9 @@ class AbstractMediaModel(TimeStampedModel):
...
@@ -42,6 +42,9 @@ class AbstractMediaModel(TimeStampedModel):
def
__str__
(
self
):
def
__str__
(
self
):
return
self
.
src
return
self
.
src
class
Meta
(
object
):
abstract
=
True
class
Image
(
AbstractMediaModel
):
class
Image
(
AbstractMediaModel
):
""" Image model. """
""" Image model. """
...
...
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