diff --git a/3_Panel_Administrador.md b/3_Panel_Administrador.md index 29b1414..72482de 100644 --- a/3_Panel_Administrador.md +++ b/3_Panel_Administrador.md @@ -26,7 +26,6 @@ Email address: admin@gitea.com Password: Password (again): Superuser created successfully. - ``` ### Explorando la BD *tabla auth_user* @@ -39,3 +38,37 @@ Superuser created successfully. ### Administrar tablas desde el Panel +*admin.py* +``` +from django.contrib import admin +from gestionPedidos.models import Clientes + +admin.site.register(Clientes) +``` + +### Configurar campo 'email' como opcional, clase Cliente +*models.py* +``` +... +class Clientes(models.Model): + ... + email = models.EmailField(blank=True, null=True) + ... +``` +*cambios en el modelo, requieren migraciĆ³n* +`python3 manage.py makemigrations` +`python3 manage.py migrate` + +### PersonalizaciĆ³n del Panel + + + +### Modificar nombre visible de tablas + + + +### Agregar campos de tablas a modificar + + + +### Agregar campo de busqueda \ No newline at end of file