diff --git a/lms/djangoapps/shoppingcart/models.py b/lms/djangoapps/shoppingcart/models.py index bbe15188ec..6bcab0d280 100644 --- a/lms/djangoapps/shoppingcart/models.py +++ b/lms/djangoapps/shoppingcart/models.py @@ -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) diff --git a/lms/djangoapps/shoppingcart/tests/test_models.py b/lms/djangoapps/shoppingcart/tests/test_models.py index 080f1a5089..14f2369a4d 100644 --- a/lms/djangoapps/shoppingcart/tests/test_models.py +++ b/lms/djangoapps/shoppingcart/tests/test_models.py @@ -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") diff --git a/lms/djangoapps/shoppingcart/tests/test_views.py b/lms/djangoapps/shoppingcart/tests/test_views.py index 8ec870ea1f..fae0285673 100644 --- a/lms/djangoapps/shoppingcart/tests/test_views.py +++ b/lms/djangoapps/shoppingcart/tests/test_views.py @@ -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):