Removed the manually-set database table names from the data models in the accounting application.

This commit is contained in:
依瑪貓 2020-08-18 23:25:49 +08:00
parent 2af34f40e0
commit e697227658

View File

@ -63,9 +63,6 @@ class Account(DirtyFieldsMixin, BaseModel):
super().save(force_insert=force_insert, force_update=force_update,
using=using, update_fields=update_fields)
class Meta:
db_table = "accounting_accounts"
@property
def title(self) -> str:
"""The title in the current language."""
@ -200,9 +197,6 @@ class Transaction(DirtyFieldsMixin, BaseModel):
for x in txn_to_sort:
Transaction.objects.filter(pk=x[0].pk).update(ord=x[1])
class Meta:
db_table = "accounting_transactions"
@property
def records(self):
"""The records of the transaction.
@ -365,9 +359,6 @@ class Record(DirtyFieldsMixin, BaseModel):
self.summary,
self.amount)
class Meta:
db_table = "accounting_records"
@property
def debit_amount(self) -> Optional[int]:
"""The debit amount of this accounting record."""