diff --git a/accounting/models.py b/accounting/models.py index 0534ee3..178b17a 100644 --- a/accounting/models.py +++ b/accounting/models.py @@ -67,6 +67,16 @@ class Account(models.Model): def title(self, value): self._title = value + _url = None + + @property + def url(self): + return self._url + + @url.setter + def url(self, value): + self._url = value + class Meta: db_table = "accounting_accounts" ordering = ["code"] diff --git a/accounting/templates/accounting/balance-sheet.html b/accounting/templates/accounting/balance-sheet.html index 1330fcf..66df392 100644 --- a/accounting/templates/accounting/balance-sheet.html +++ b/accounting/templates/accounting/balance-sheet.html @@ -100,7 +100,7 @@ First written: 2020/7/20