1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

add basic transactiontemplate handling

This commit is contained in:
Pierre-antoine Comby
2019-08-11 19:54:18 +02:00
parent f6464c2a14
commit edbcf9629c
5 changed files with 30 additions and 9 deletions

View File

@ -6,7 +6,7 @@ from django.db import models
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from .notes import Note
from .notes import Note,NoteClub
"""
Defines transactions
@ -19,7 +19,7 @@ class TransactionTemplate(models.Model):
max_length=255,
)
destination = models.ForeignKey(
Note,
NoteClub,
on_delete=models.PROTECT,
related_name='+', # no reverse
verbose_name=_('destination'),