Add tab for user list
This commit is contained in:
parent
5eb08fd822
commit
3f5faa0b05
6 changed files with 68 additions and 15 deletions
|
|
@ -46,12 +46,14 @@ class TransactionTemplate(models.Model):
|
|||
unique=True,
|
||||
error_messages={'unique': _("A template with this name already exist")},
|
||||
)
|
||||
|
||||
destination = models.ForeignKey(
|
||||
NoteClub,
|
||||
on_delete=models.PROTECT,
|
||||
related_name='+', # no reverse
|
||||
verbose_name=_('destination'),
|
||||
)
|
||||
|
||||
amount = models.PositiveIntegerField(
|
||||
verbose_name=_('amount'),
|
||||
help_text=_('in centimes'),
|
||||
|
|
@ -62,9 +64,12 @@ class TransactionTemplate(models.Model):
|
|||
verbose_name=_('type'),
|
||||
max_length=31,
|
||||
)
|
||||
|
||||
display = models.BooleanField(
|
||||
default=True,
|
||||
verbose_name=_("display"),
|
||||
)
|
||||
|
||||
description = models.CharField(
|
||||
verbose_name=_('description'),
|
||||
max_length=255,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue