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*