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
d1b3e8e0
Commit
d1b3e8e0
authored
Oct 08, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5520 from edx/will/update-donation-text
Update donation text in email and receipt page
parents
85a31bc3
2d50cad0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
lms/djangoapps/shoppingcart/models.py
+3
-3
lms/djangoapps/shoppingcart/tests/test_models.py
+2
-2
lms/djangoapps/shoppingcart/tests/test_views.py
+2
-2
No files found.
lms/djangoapps/shoppingcart/models.py
View file @
d1b3e8e0
...
...
@@ -975,10 +975,10 @@ class Donation(OrderItem):
"""
return
_
(
u"We greatly appreciate this generous contribution and your support of the {platform_name} mission. "
u"This receipt was prepared to support charitable contributions for tax purposes. "
u"Gifts are tax deductible as permitted by law. "
u"We confirm that neither goods nor services were provided in exchange for this gift."
)
)
.
format
(
platform_name
=
settings
.
PLATFORM_NAME
)
@classmethod
def
_line_item_description
(
self
,
course_id
=
None
):
...
...
@@ -1010,4 +1010,4 @@ class Donation(OrderItem):
# The donation is for the organization as a whole, not a specific course
else
:
return
_
(
u"Donation
"
)
return
_
(
u"Donation
for {platform_name}"
)
.
format
(
platform_name
=
settings
.
PLATFORM_NAME
)
lms/djangoapps/shoppingcart/tests/test_models.py
View file @
d1b3e8e0
...
...
@@ -578,7 +578,7 @@ class DonationTest(ModuleStoreTestCase):
donation
,
donation_type
=
"general"
,
unit_cost
=
self
.
COST
,
line_desc
=
"Donation"
line_desc
=
"Donation
for edX
"
)
def
test_donate_to_course
(
self
):
...
...
@@ -605,7 +605,7 @@ class DonationTest(ModuleStoreTestCase):
self
.
assertEqual
(
len
(
mail
.
outbox
),
1
)
email
=
mail
.
outbox
[
0
]
self
.
assertEquals
(
'Order Payment Confirmation'
,
email
.
subject
)
self
.
assertIn
(
"tax
deductible
"
,
email
.
body
)
self
.
assertIn
(
"tax
purposes
"
,
email
.
body
)
def
test_donate_no_such_course
(
self
):
fake_course_id
=
CourseLocator
(
org
=
"edx"
,
course
=
"fake"
,
run
=
"course"
)
...
...
lms/djangoapps/shoppingcart/tests/test_views.py
View file @
d1b3e8e0
...
...
@@ -900,7 +900,7 @@ class DonationViewTest(ModuleStoreTestCase):
def
test_donation_for_org
(
self
):
self
.
_donate
(
self
.
DONATION_AMOUNT
)
self
.
_assert_receipt_contains
(
"tax
deductible
"
)
self
.
_assert_receipt_contains
(
"tax
purposes
"
)
def
test_donation_for_course_receipt
(
self
):
# Create a test course and donate to it
...
...
@@ -908,7 +908,7 @@ class DonationViewTest(ModuleStoreTestCase):
self
.
_donate
(
self
.
DONATION_AMOUNT
,
course_id
=
self
.
course
.
id
)
# Verify the receipt page
self
.
_assert_receipt_contains
(
"tax
deductible
"
)
self
.
_assert_receipt_contains
(
"tax
purposes
"
)
self
.
_assert_receipt_contains
(
self
.
course
.
display_name
)
def
test_smallest_possible_donation
(
self
):
...
...
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