Commit d957e643 authored by erdnaxe's avatar erdnaxe 🎇

Simplify transaction model

parent d6791d8d
Pipeline #1361 passed with stage
in 2 minutes and 30 seconds
...@@ -55,8 +55,9 @@ class Transaction(models.Model): ...@@ -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): ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment