# HG changeset patch # User Brian Neal # Date 1634499653 18000 # Node ID fbfb1a9c70e238508120133fea6b35f271c30e13 # Parent d6faffbb6025955d2a9ce099d6b9a4556b6b9c0f Make donations business a list. Paypal is now returning a different business email in IPN messages. diff -r d6faffbb6025 -r fbfb1a9c70e2 donations/views.py --- 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, diff -r d6faffbb6025 -r fbfb1a9c70e2 sg101/settings/base.py --- 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 diff -r d6faffbb6025 -r fbfb1a9c70e2 sg101/settings/test.py --- 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']