fix: permitiendo vacio en campos opcionales.

This commit is contained in:
2024-06-22 14:20:03 -05:00
parent 6c0845f7b0
commit 4bc47ebd79
2 changed files with 25 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ class Sale(models.Model):
customer = models.CharField(max_length=100)
date = models.DateField("Date")
phone = models.CharField(max_length=13)
phone = models.CharField(max_length=13, null=True, blank=True)
description = models.CharField(max_length=255, null=True, blank=True)
@@ -15,4 +15,4 @@ class SaleLine(models.Model):
product = models.CharField(max_length=100)
quantity = models.IntegerField(null=True)
unit_price = models.DecimalField(max_digits=9, decimal_places=2)
description = models.CharField(max_length=255)
description = models.CharField(max_length=255, null=True, blank=True)