ed: class FormContacto forms.py
parent
7eb47fd8eb
commit
8279e9c6a0
@ -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*
|
||||
|
Loading…
Reference in New Issue
Block a user