From 0951e97263f3b1850cf67bc475b819f5fa5806d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 31 Oct 2018 18:17:35 +0100 Subject: [PATCH] Use int and Decimal instead of lambda issue7816 review74401002 --- dunning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dunning.py b/dunning.py index d15ccc5094..de1dfcaab4 100644 --- a/dunning.py +++ b/dunning.py @@ -183,7 +183,7 @@ class Letter(metaclass=PoolMeta): @property def fees(self): - fees = defaultdict(lambda: 0) + fees = defaultdict(int) fees.update(super(PartyLetterFee, self).fees) for dunning in self.dunnings: for fee in dunning.fees: