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
0601761d
Commit
0601761d
authored
Sep 17, 2013
by
chrisndodge
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1000 from edx/fix/cdodge/courseware-index-perf-tweek
Fix/cdodge/courseware index perf tweek
parents
45d24b99
1a5edcd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
lms/djangoapps/courseware/views.py
+8
-3
No files found.
lms/djangoapps/courseware/views.py
View file @
0601761d
...
...
@@ -375,9 +375,14 @@ def index(request, course_id, chapter=None, section=None,
# html, which in general will need all of its children
section_field_data_cache
=
FieldDataCache
.
cache_for_descriptor_descendents
(
course_id
,
user
,
section_descriptor
,
depth
=
None
)
section_module
=
get_module
(
request
.
user
,
request
,
section_descriptor
.
location
,
section_field_data_cache
,
course_id
,
position
,
depth
=
None
)
section_module
=
get_module_for_descriptor
(
request
.
user
,
request
,
section_descriptor
,
section_field_data_cache
,
course_id
,
position
)
if
section_module
is
None
:
# User may be trying to be clever and access something
...
...
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