Mercurial > public > sg101
changeset 1184:fbfb1a9c70e2
Make donations business a list.
Paypal is now returning a different business email in IPN messages.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 17 Oct 2021 14:40:53 -0500 |
parents | d6faffbb6025 |
children | 8ec03abf16c1 |
files | donations/views.py sg101/settings/base.py sg101/settings/test.py |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/donations/views.py Mon Feb 15 12:39:26 2021 -0600 +++ b/donations/views.py Sun Oct 17 14:40:53 2021 -0500 @@ -71,7 +71,7 @@ 'pct': pct, 'donations': donations, 'form_action': form_action, - 'business': business, + 'business': business[0], 'anonymous': settings.DONATIONS_ANON_NAME, 'item_name': settings.DONATIONS_ITEM_NAME, 'item_number': settings.DONATIONS_ITEM_NUM,
--- a/sg101/settings/base.py Mon Feb 15 12:39:26 2021 -0600 +++ b/sg101/settings/base.py Sun Oct 17 14:40:53 2021 -0500 @@ -262,8 +262,8 @@ # Donations application settings: DONATIONS_DEBUG = False DONATIONS_ITEM_NAME = 'Donation for SurfGuitar101.com' -DONATIONS_BUSINESS = 'brian@surfguitar101.com' -DONATIONS_BUSINESS_DEBUG = 'bgneal_1246137628_biz@gmail.com' +DONATIONS_BUSINESS = ['brian@surfguitar101.com', 'bgneal@gmail.com'] +DONATIONS_BUSINESS_DEBUG = ['bgneal_1246137628_biz@gmail.com'] DONATIONS_GOAL = Decimal('120.00') # monthly goal DONATIONS_ANON_NAME = u'Anonymous' DONATIONS_ITEM_NUM = '500' # donation w/name listed
--- a/sg101/settings/test.py Mon Feb 15 12:39:26 2021 -0600 +++ b/sg101/settings/test.py Sun Oct 17 14:40:53 2021 -0500 @@ -38,4 +38,4 @@ # For unit-testing the Donations module w/o using the Paypal sandbox DONATIONS_DEBUG_VERIFY_RESPONSE = 'VERIFIED' -DONATIONS_BUSINESS_DEBUG = 'brian@surfguitar101.com' +DONATIONS_BUSINESS_DEBUG = ['brian@surfguitar101.com']