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
5275db9a
Commit
5275db9a
authored
Feb 05, 2013
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cancel kind of works (reverts but leaves in new fields :-( )
Filter out system metadata fields
parent
74d37327
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
cms/djangoapps/models/settings/course_metadata.py
+2
-1
cms/static/js/models/settings/advanced.js
+1
-1
No files found.
cms/djangoapps/models/settings/course_metadata.py
View file @
5275db9a
from
xmodule.modulestore
import
Location
from
contentstore.utils
import
get_modulestore
from
xmodule.x_module
import
XModuleDescriptor
class
CourseMetadata
(
object
):
...
...
@@ -8,7 +9,7 @@ class CourseMetadata(object):
The objects have no predefined attrs but instead are obj encodings of the editable metadata.
'''
# __new_advanced_key__ is used by client not server; so, could argue against it being here
FILTERED_LIST
=
[
'start'
,
'end'
,
'enrollment_start'
,
'enrollment_end'
,
'tabs'
,
'graceperiod'
,
'__new_advanced_key__'
]
FILTERED_LIST
=
XModuleDescriptor
.
system_metadata_fields
+
[
'start'
,
'end'
,
'enrollment_start'
,
'enrollment_end'
,
'tabs'
,
'graceperiod'
,
'__new_advanced_key__'
]
@classmethod
def
fetch
(
cls
,
course_location
):
...
...
cms/static/js/models/settings/advanced.js
View file @
5275db9a
...
...
@@ -123,7 +123,7 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
this
.
model
.
deleteKeys
=
[];
var
self
=
this
;
this
.
model
.
fetch
({
success
:
this
.
render
,
success
:
function
()
{
self
.
render
();
}
,
error
:
CMS
.
ServerError
});
},
...
...
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