Enforce correct capitalization of PayPal
This commit is contained in:
@@ -14,7 +14,6 @@ class TransactionSerializer(serializers.ModelSerializer):
|
||||
account_type = serializers.ChoiceField([
|
||||
'Interac',
|
||||
'TD Chequing',
|
||||
'Paypal',
|
||||
'Dream Pmt',
|
||||
'PayPal',
|
||||
'Square Pmt',
|
||||
@@ -28,7 +27,6 @@ class TransactionSerializer(serializers.ModelSerializer):
|
||||
'System',
|
||||
'Receipt or Stmt',
|
||||
'Quicken Import',
|
||||
'Paypal IPN',
|
||||
'PayPal IPN',
|
||||
'Auto',
|
||||
'Nexus DB Bulk',
|
||||
@@ -44,7 +42,7 @@ class TransactionSerializer(serializers.ModelSerializer):
|
||||
'Unmatched Member',
|
||||
'Unmatched Purchase',
|
||||
'User Flagged',
|
||||
], allow_null=True)
|
||||
], allow_null=True, required=False)
|
||||
|
||||
class Meta:
|
||||
model = models.Transaction
|
||||
|
@@ -350,7 +350,7 @@ class TestTallyMembership(TestCase):
|
||||
|
||||
self.assertEqual(result, False)
|
||||
|
||||
class TestParsePaypalDate(TestCase):
|
||||
class TestParsePayPalDate(TestCase):
|
||||
def test_parse(self):
|
||||
string = '20:12:59 Jan 13, 2009 PST'
|
||||
|
||||
|
@@ -21,7 +21,7 @@ else:
|
||||
|
||||
def parse_paypal_date(string):
|
||||
'''
|
||||
Convert paypal date string into python datetime. Paypal's a bunch of idiots.
|
||||
Convert paypal date string into python datetime. PayPal's a bunch of idiots.
|
||||
Their API returns dates in some custom format, so we have to parse it.
|
||||
|
||||
Stolen from:
|
||||
|
Reference in New Issue
Block a user