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
59d84e5b
Commit
59d84e5b
authored
Apr 18, 2017
by
rabia23
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TNL-6666 Fix 500 error when entering courseware.
parent
2d4a564a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
lms/djangoapps/courseware/views/index.py
+9
-3
No files found.
lms/djangoapps/courseware/views/index.py
View file @
59d84e5b
...
...
@@ -388,9 +388,15 @@ class CoursewareIndex(View):
if
self
.
section
.
position
and
self
.
section
.
has_children
:
display_items
=
self
.
section
.
get_display_items
()
if
display_items
:
courseware_context
[
'sequence_title'
]
=
display_items
[
self
.
section
.
position
-
1
]
\
.
display_name_with_default
try
:
courseware_context
[
'sequence_title'
]
=
display_items
[
self
.
section
.
position
-
1
]
\
.
display_name_with_default
except
IndexError
:
log
.
info
(
"Course section {} with position {} and total section display items: {}"
.
format
(
self
.
section
.
display_name_with_default
,
self
.
section
.
position
,
len
(
display_items
),
))
return
courseware_context
def
_add_entrance_exam_to_context
(
self
,
courseware_context
):
...
...
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