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
f6b4d3aa
Commit
f6b4d3aa
authored
Mar 12, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the markdown attribute default to None, to distinguish it from the empty string
parent
1411fadd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cms/djangoapps/contentstore/views.py
+1
-1
common/lib/xmodule/xmodule/capa_module.py
+2
-2
No files found.
cms/djangoapps/contentstore/views.py
View file @
f6b4d3aa
...
...
@@ -325,7 +325,7 @@ def edit_unit(request, location):
component_templates
[
category
]
.
append
((
template
.
display_name_with_default
,
template
.
location
.
url
(),
hasattr
(
template
,
'markdown'
)
and
template
.
markdown
!=
''
,
hasattr
(
template
,
'markdown'
)
and
template
.
markdown
is
not
None
,
template
.
cms
.
empty
,
))
...
...
common/lib/xmodule/xmodule/capa_module.py
View file @
f6b4d3aa
...
...
@@ -801,7 +801,7 @@ class CapaDescriptor(RawDescriptor):
module_class
=
CapaModule
weight
=
StringyFloat
(
help
=
"How much to weight this problem by"
,
scope
=
Scope
.
settings
)
markdown
=
String
(
help
=
"Markdown source of this module"
,
scope
=
Scope
.
settings
,
default
=
''
)
markdown
=
String
(
help
=
"Markdown source of this module"
,
scope
=
Scope
.
settings
)
stores_state
=
True
has_score
=
True
...
...
@@ -824,7 +824,7 @@ class CapaDescriptor(RawDescriptor):
def
get_context
(
self
):
_context
=
RawDescriptor
.
get_context
(
self
)
_context
.
update
({
'markdown'
:
self
.
markdown
,
'enable_markdown'
:
self
.
markdown
!=
''
})
'enable_markdown'
:
self
.
markdown
is
not
None
})
return
_context
@property
...
...
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