From 5b3361f086d26c6f0fdcf81109e6c23d91979b1a Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 6 Aug 2020 18:05:58 +0200 Subject: [PATCH] Product quantity must be positive --- apps/treasury/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/treasury/models.py b/apps/treasury/models.py index 90366e7e..6cfb55c1 100644 --- a/apps/treasury/models.py +++ b/apps/treasury/models.py @@ -82,7 +82,7 @@ class Product(models.Model): verbose_name=_("Designation"), ) - quantity = models.IntegerField( + quantity = models.PositiveIntegerField( verbose_name=_("Quantity") )