From 8279e9c6a0d02cc5396acd5f58a86d730b5d38a4 Mon Sep 17 00:00:00 2001 From: "jp.av.dev" Date: Sun, 15 Nov 2020 19:14:03 -0300 Subject: [PATCH] ed: class FormContacto forms.py --- 6_API_Forms.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/6_API_Forms.md b/6_API_Forms.md index 7ced98a..a72fc01 100644 --- a/6_API_Forms.md +++ b/6_API_Forms.md @@ -22,9 +22,9 @@ Crear */TiendaOnline/gestionPedidos/forms.py* from django import forms class FormContacto(forms.Form): - asunto = forms.CharField() - email = forms.EmailField() - msj = forms.CharField() + asunto = forms.CharField(max_length=35, required=False, initial='Contacto') + email = forms.EmailField(max_length=35) + msj = forms.CharField(widget=forms.Textarea(attrs={'rows': 5, 'cols': 26})) ``` 🔸️*python3 manage.py shell*