Use model polymorphism

This commit is contained in:
Alexandre Iooss 2019-07-17 11:17:50 +02:00
parent 14282427af
commit 5110d6a16b
No known key found for this signature in database
GPG key ID: 6C79278F3FCDCC02
5 changed files with 20 additions and 13 deletions

View file

@ -26,6 +26,7 @@ class TransactionTemplate(models.Model):
)
amount = models.PositiveIntegerField(
verbose_name=_('amount'),
help_text=_('in centimes'),
)
template_type = models.CharField(
verbose_name=_('type'),