Removed the manually-set database table names from the data models in the accounting application.
This commit is contained in:
parent
2af34f40e0
commit
e697227658
@ -63,9 +63,6 @@ class Account(DirtyFieldsMixin, BaseModel):
|
|||||||
super().save(force_insert=force_insert, force_update=force_update,
|
super().save(force_insert=force_insert, force_update=force_update,
|
||||||
using=using, update_fields=update_fields)
|
using=using, update_fields=update_fields)
|
||||||
|
|
||||||
class Meta:
|
|
||||||
db_table = "accounting_accounts"
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def title(self) -> str:
|
def title(self) -> str:
|
||||||
"""The title in the current language."""
|
"""The title in the current language."""
|
||||||
@ -200,9 +197,6 @@ class Transaction(DirtyFieldsMixin, BaseModel):
|
|||||||
for x in txn_to_sort:
|
for x in txn_to_sort:
|
||||||
Transaction.objects.filter(pk=x[0].pk).update(ord=x[1])
|
Transaction.objects.filter(pk=x[0].pk).update(ord=x[1])
|
||||||
|
|
||||||
class Meta:
|
|
||||||
db_table = "accounting_transactions"
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def records(self):
|
def records(self):
|
||||||
"""The records of the transaction.
|
"""The records of the transaction.
|
||||||
@ -365,9 +359,6 @@ class Record(DirtyFieldsMixin, BaseModel):
|
|||||||
self.summary,
|
self.summary,
|
||||||
self.amount)
|
self.amount)
|
||||||
|
|
||||||
class Meta:
|
|
||||||
db_table = "accounting_records"
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def debit_amount(self) -> Optional[int]:
|
def debit_amount(self) -> Optional[int]:
|
||||||
"""The debit amount of this accounting record."""
|
"""The debit amount of this accounting record."""
|
||||||
|
Loading…
Reference in New Issue
Block a user