mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-13 16:22:42 +02:00
feat(migrations): add related field name to transaction x account relationship
This commit is contained in:
@@ -46,7 +46,10 @@ class Transaction(models.Model):
|
|||||||
EXPENSE = "EX", _("Expense")
|
EXPENSE = "EX", _("Expense")
|
||||||
|
|
||||||
account = models.ForeignKey(
|
account = models.ForeignKey(
|
||||||
"accounts.Account", on_delete=models.CASCADE, verbose_name=_("Account")
|
"accounts.Account",
|
||||||
|
on_delete=models.CASCADE,
|
||||||
|
verbose_name=_("Account"),
|
||||||
|
related_name="transactions",
|
||||||
)
|
)
|
||||||
type = models.CharField(
|
type = models.CharField(
|
||||||
max_length=2,
|
max_length=2,
|
||||||
|
|||||||
Reference in New Issue
Block a user