fix: permitiendo vacio en campos opcionales.
This commit is contained in:
parent
6c0845f7b0
commit
4bc47ebd79
@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.0.6 on 2024-06-22 19:16
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('don_confiao', '0007_alter_sale_description'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='sale',
|
||||
name='phone',
|
||||
field=models.CharField(blank=True, max_length=13, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='saleline',
|
||||
name='description',
|
||||
field=models.CharField(blank=True, max_length=255, null=True),
|
||||
),
|
||||
]
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user