mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-01 06:53:18 +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")
|
||||
|
||||
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(
|
||||
max_length=2,
|
||||
|
||||
Reference in New Issue
Block a user