diff --git a/registrasion/controllers/invoice.py b/registrasion/controllers/invoice.py index e9a654e4f968beeb7879694d6cf5a4b145143e79..b8087c989c94a8662f2c736e862c2a92db5e0e02 100644 --- a/registrasion/controllers/invoice.py +++ b/registrasion/controllers/invoice.py @@ -122,7 +122,7 @@ class InvoiceController(object): ) payment.save() - payments = rego.Payment.objects .filter(invoice=self.invoice) + payments = rego.Payment.objects.filter(invoice=self.invoice) agg = payments.aggregate(Sum("amount")) total = agg["amount__sum"]