Renamed "subject" to "account" in the models of the accounting application.

This commit is contained in:
依瑪貓 committed 2020-07-21 10:43:05 +08:00
1 parent 076a68c028
commit bace7bb93b
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -68,7 +68,7 @@ class Account(models.Model):
self._title = value
class Meta:
db_table = "accounting_subjects"
db_table = "accounting_accounts"
ordering = ["code"]
@@ -199,7 +199,7 @@ class Record(models.Model):
is_credit = models.BooleanField()
ord = models.PositiveSmallIntegerField(default=1)
account = models.ForeignKey(
Account, on_delete=models.PROTECT, db_column="subject_sn")
Account, on_delete=models.PROTECT, db_column="account_sn")
summary = models.CharField(max_length=128, blank=True, null=True)
amount = models.PositiveIntegerField()
created_at = models.DateTimeField(