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
08aaa97b
Commit
08aaa97b
authored
May 20, 2014
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Serialize course_key at last possible code junction
parent
f7558c40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lms/djangoapps/open_ended_grading/views.py
+3
-3
No files found.
lms/djangoapps/open_ended_grading/views.py
View file @
08aaa97b
...
...
@@ -35,14 +35,14 @@ def _reverse_with_slash(url_name, course_key):
@param course_id: The id of the course object (eg course.id).
@returns: The reversed url with a trailing slash.
"""
course_id
=
course_key
.
to_deprecated_string
()
ajax_url
=
_reverse_without_slash
(
url_name
,
course_id
)
ajax_url
=
_reverse_without_slash
(
url_name
,
course_key
)
if
not
ajax_url
.
endswith
(
'/'
):
ajax_url
+=
'/'
return
ajax_url
def
_reverse_without_slash
(
url_name
,
course_id
):
def
_reverse_without_slash
(
url_name
,
course_key
):
course_id
=
course_key
.
to_deprecated_string
()
ajax_url
=
reverse
(
url_name
,
kwargs
=
{
'course_id'
:
course_id
})
return
ajax_url
...
...
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