Importación de clientes por CSV #56

Merged
Cosmos merged 2 commits from import_customers into main 2024-10-26 17:24:21 -05:00
2 changed files with 19 additions and 0 deletions
Showing only changes of commit 83f3bbdc85 - Show all commits

View File

@ -0,0 +1,18 @@
# Generated by Django 5.0.6 on 2024-10-26 22:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('don_confiao', '0031_rename_address_customer_email_customer_phone'),
]
operations = [
migrations.AddField(
model_name='customer',
name='address',
field=models.CharField(blank=True, max_length=100, null=True),
),
]

View File

@ -8,6 +8,7 @@ from datetime import datetime
class Customer(models.Model): class Customer(models.Model):
name = models.CharField(max_length=100, default=None, null=False, blank=False) name = models.CharField(max_length=100, default=None, null=False, blank=False)
address = models.CharField(max_length=100, null=True, blank=True)
email = models.CharField(max_length=100, null=True, blank=True) email = models.CharField(max_length=100, null=True, blank=True)
phone = models.CharField(max_length=100, null=True, blank=True) phone = models.CharField(max_length=100, null=True, blank=True)