InvoiceManager must be instantiated
authorMagnus Hagander <magnus@hagander.net>
Sat, 14 Apr 2018 18:38:07 +0000 (20:38 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sat, 14 Apr 2018 18:38:07 +0000 (20:38 +0200)
postgresqleu/trustlypayment/management/commands/trustly_match_refunds.py

index 10184b773a7322960f746be8b8491cf19ca229c1..d4f25e2550d72a53aa7b128ebee67425a517cf25 100644 (file)
@@ -25,7 +25,7 @@ class Command(BaseCommand):
        @transaction.atomic
        def handle(self, *args, **options):
                trustly = Trustly()
-               manager = InvoiceManager
+               manager = InvoiceManager()
                method = InvoicePaymentMethod.objects.get(classname='postgresqleu.util.payment.trustly.TrustlyPayment')
 
                refunds = InvoiceRefund.objects.filter(completed__isnull=True, invoice__paidusing=method)