Fix: Product name unique

This commit is contained in:
2024-08-03 11:33:11 -05:00
parent 19a1ba29d7
commit 8d29202d3a
2 changed files with 19 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ class ProductCategory(models.Model):
class Product(models.Model):
name = models.CharField(max_length=100, unique=False)
name = models.CharField(max_length=100, unique=True)
price = models.DecimalField(max_digits=9, decimal_places=2)
measuring_unit = models.CharField(
max_length=20,