Make ItemBundle.designated_price non-nullable

This commit is contained in:
Raphael Michel
2019-03-23 23:42:58 +01:00
parent e6859fa82b
commit a6de586b80
2 changed files with 25 additions and 1 deletions

View File

@@ -818,7 +818,7 @@ class ItemBundle(models.Model):
verbose_name=_('Number')
)
designated_price = models.DecimalField(
null=True, blank=True,
default=Decimal('0.00'), blank=True,
decimal_places=2, max_digits=10,
verbose_name=_('Designated price part'),
help_text=_('If set, it will be shown that this bundled item is responsible for the given value of the total '