From 478d0ca035da093cf34c664c14b692faf0e4c09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 2 Aug 2020 10:39:07 +0800 Subject: [PATCH] Removed unnecessary @property decorations from the transaction data model in the accounting application. --- accounting/models.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/accounting/models.py b/accounting/models.py index 630349a..56caf4f 100644 --- a/accounting/models.py +++ b/accounting/models.py @@ -158,7 +158,6 @@ class Transaction(DirtyFieldsMixin, models.Model): """ return [x for x in self.records if not x.is_credit] - @property def debit_total(self): """The total amount of the debit records.""" return sum([x.amount for x in self.debit_records @@ -173,7 +172,6 @@ class Transaction(DirtyFieldsMixin, models.Model): """ return [x for x in self.records if x.is_credit] - @property def credit_total(self): """The total amount of the credit records.""" return sum([x.amount for x in self.credit_records @@ -193,7 +191,6 @@ class Transaction(DirtyFieldsMixin, models.Model): def is_balanced(self, value): self._is_balanced = value - @property def has_many_same_day(self): """whether there are more than one transactions at this day, so that the user can sort their orders. """