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
df0b983e
Commit
df0b983e
authored
Feb 12, 2016
by
Mushtaq Ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve is_self_paced method
parent
f9c37595
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
+1
-7
cms/djangoapps/contentstore/utils.py
+1
-7
No files found.
cms/djangoapps/contentstore/utils.py
View file @
df0b983e
...
...
@@ -463,10 +463,4 @@ def is_self_paced(course):
"""
Returns True if course is self-paced, False otherwise.
"""
if
course
:
try
:
return
course
.
self_paced
and
SelfPacedConfiguration
.
current
()
.
enabled
except
AttributeError
:
# if course object has no self_paced attribute
pass
return
False
return
course
.
self_paced
and
SelfPacedConfiguration
.
current
()
.
enabled
if
course
else
False
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