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
0c1cc07b
Commit
0c1cc07b
authored
Feb 27, 2015
by
Daniel Friedman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7131 from edx/django-upgrade/backport-changes/misc-code-changes
Django upgrade/backport changes/misc code changes
parents
eb5e7d89
e622e63c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
cms/djangoapps/contentstore/views/component.py
+7
-1
No files found.
cms/djangoapps/contentstore/views/component.py
View file @
0c1cc07b
...
...
@@ -286,8 +286,14 @@ def get_component_templates(courselike, library=False):
for
advanced_problem_type
in
ADVANCED_PROBLEM_TYPES
:
component
=
advanced_problem_type
[
'component'
]
boilerplate_name
=
advanced_problem_type
[
'boilerplate_name'
]
try
:
component_display_name
=
xblock_type_display_name
(
component
)
templates_for_category
.
append
(
create_template_dict
(
component_display_name
,
component
,
boilerplate_name
))
except
PluginMissingError
:
log
.
warning
(
'Unable to load xblock type
%
s to read display_name'
,
component
,
exc_info
=
True
)
else
:
templates_for_category
.
append
(
create_template_dict
(
component_display_name
,
component
,
boilerplate_name
)
)
categories
.
add
(
component
)
component_templates
.
append
({
...
...
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