fix: evitando duplicado de productos en la importacion.
This commit is contained in:
@@ -27,7 +27,7 @@ class ProductCategory(models.Model):
|
||||
return self.name
|
||||
|
||||
class Product(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
name = models.CharField(max_length=100, unique=True)
|
||||
price = models.DecimalField(max_digits=9, decimal_places=2)
|
||||
measuring_unit = models.CharField(
|
||||
max_length=20,
|
||||
|
||||
Reference in New Issue
Block a user