From a9f01f8dc9a8bbb4d04e656dbc58312569cd6c7b Mon Sep 17 00:00:00 2001 From: "jp.av.dev" Date: Sun, 15 Nov 2020 02:20:29 -0300 Subject: [PATCH] +views.py --- TiendaOnline/gestionPedidos/models.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/TiendaOnline/gestionPedidos/models.py b/TiendaOnline/gestionPedidos/models.py index 9995cac..7f5e49a 100644 --- a/TiendaOnline/gestionPedidos/models.py +++ b/TiendaOnline/gestionPedidos/models.py @@ -1,18 +1,18 @@ from django.db import models class Clientes(models.Model): - nombre = models.CharField(max_length = 30) - direccion = models.CharField(max_length = 50, verbose_name = "La Direcc.:") - email = models.EmailField(blank = True, null = True) - fono = models.CharField(max_length = 10) + nombre = models.CharField(max_length=30) + direccion = models.CharField(max_length=50, verbose_name="La Direcc.:") + email = models.EmailField(blank=True, null=True) + fono = models.CharField(max_length=10) def __str__(self): return (self.nombre) class Articulos(models.Model): - nombre = models.CharField(max_length = 30) - seccion = models.CharField(max_length = 20) + nombre = models.CharField(max_length=30) + seccion = models.CharField(max_length=20) precio = models.IntegerField() def __str__(self): @@ -23,3 +23,4 @@ class Pedidos (models.Model): numero = models.IntegerField() fecha = models.DateField() entregado = models.BooleanField() +