mirror of https://gitlab.crans.org/bde/nk20
Simplify transaction model
This commit is contained in:
parent
d6791d8d5e
commit
d957e643c9
|
@ -55,8 +55,9 @@ class Transaction(models.Model):
|
||||||
verbose_name=_('created at'),
|
verbose_name=_('created at'),
|
||||||
default=timezone.now,
|
default=timezone.now,
|
||||||
)
|
)
|
||||||
quantity = models.PositiveSmallIntegerField(
|
quantity = models.PositiveIntegerField(
|
||||||
verbose_name=_('quantity'),
|
verbose_name=_('quantity'),
|
||||||
|
default=1,
|
||||||
)
|
)
|
||||||
amount = models.PositiveIntegerField(
|
amount = models.PositiveIntegerField(
|
||||||
verbose_name=_('amount'),
|
verbose_name=_('amount'),
|
||||||
|
@ -69,8 +70,9 @@ class Transaction(models.Model):
|
||||||
verbose_name=_('reason'),
|
verbose_name=_('reason'),
|
||||||
max_length=255,
|
max_length=255,
|
||||||
)
|
)
|
||||||
valid = models.NullBooleanField(
|
valid = models.BooleanField(
|
||||||
verbose_name=_('valid'),
|
verbose_name=_('valid'),
|
||||||
|
default=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
Loading…
Reference in New Issue