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
19ab2b93
Commit
19ab2b93
authored
Oct 21, 2014
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unicode problem and also make display links a bit shorter
wip remove unused kwarg
parent
655381b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lms/djangoapps/shoppingcart/models.py
+1
-1
lms/templates/shoppingcart/receipt.html
+1
-1
No files found.
lms/djangoapps/shoppingcart/models.py
View file @
19ab2b93
...
...
@@ -254,7 +254,7 @@ class Order(models.Model):
for
registration_code
in
registration_codes
:
redemption_url
=
reverse
(
'register_code_redemption'
,
args
=
[
registration_code
.
code
])
url
=
'{base_url}{redemption_url}'
.
format
(
base_url
=
site_name
,
redemption_url
=
redemption_url
)
csv_writer
.
writerow
([
course
.
display_name
,
registration_code
.
code
,
url
])
csv_writer
.
writerow
([
unicode
(
course
.
display_name
)
.
encode
(
"utf-8"
)
,
registration_code
.
code
,
url
])
return
csv_file
,
course_info
...
...
lms/templates/shoppingcart/receipt.html
View file @
19ab2b93
...
...
@@ -70,7 +70,7 @@ from courseware.courses import course_image_url, get_course_about_section, get_c
<td>
${registration_code.code}
</td>
<
%
redemption_url =
reverse('register_code_redemption',
args =
[registration_code.code]
)
%
>
<
%
enrollment_url =
'{
base_url}{redemption_url}'
.
format
(
base_url=
site_name,
redemption_url=
redemption_url)
%
>
<
%
enrollment_url =
'{
redemption_url}'
.
format
(
redemption_url=
redemption_url)
%
>
<td><a
href=
"${redemption_url}"
>
${enrollment_url}
</a></td>
</tr>
% endfor
...
...
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