Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx-platform
Commits
bf9d1ef1
Commit
bf9d1ef1
authored
Feb 13, 2015
by
Martyn James
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated course_about API to include additional information
parent
2c080af6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
common/djangoapps/course_about/data.py
+17
-1
common/djangoapps/course_about/serializers.py
+1
-2
No files found.
common/djangoapps/course_about/data.py
View file @
bf9d1ef1
...
...
@@ -15,7 +15,23 @@ from xmodule.modulestore.exceptions import ItemNotFoundError
log
=
logging
.
getLogger
(
__name__
)
ABOUT_ATTRIBUTES
=
[
'effort'
'effort'
,
'overview'
,
'title'
,
'university'
,
'number'
,
'short_description'
,
'description'
,
'key_dates'
,
'video'
,
'course_staff_short'
,
'course_staff_extended'
,
'requirements'
,
'syllabus'
,
'textbook'
,
'faq'
,
'more_info'
,
'ocw_links'
,
]
...
...
common/djangoapps/course_about/serializers.py
View file @
bf9d1ef1
...
...
@@ -27,9 +27,8 @@ def serialize_content(course_descriptor, about_descriptor):
'start'
:
_formatted_datetime
(
course_descriptor
,
'start'
),
'end'
:
_formatted_datetime
(
course_descriptor
,
'end'
),
'announcement'
:
None
,
'effort'
:
about_descriptor
.
get
(
"effort"
,
None
)
}
data
.
update
(
about_descriptor
)
content_id
=
unicode
(
course_descriptor
.
id
)
data
[
"course_id"
]
=
unicode
(
content_id
)
...
...
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