Fix #65 -- Disallow None value for product default prices (#3847)

* Fix #65 -- Disallow None value for product default prices

* Fix #65 -- Disallow None value for product default prices

* Rebase migration
This commit is contained in:
Raphael Michel
2024-02-28 16:10:53 +01:00
committed by GitHub
parent a5d4434a64
commit 04ef097eb1
3 changed files with 21 additions and 2 deletions

View File

@@ -430,7 +430,7 @@ class Item(LoggedModel):
help_text=_("If this product has multiple variations, you can set different prices for each of the "
"variations. If a variation does not have a special price or if you do not have variations, "
"this price will be used."),
max_digits=13, decimal_places=2, null=True
max_digits=13, decimal_places=2,
)
free_price = models.BooleanField(
default=False,