ed: class FormContacto forms.py
parent
7eb47fd8eb
commit
8279e9c6a0
@ -22,9 +22,9 @@ Crear */TiendaOnline/gestionPedidos/forms.py*
|
|||||||
from django import forms
|
from django import forms
|
||||||
|
|
||||||
class FormContacto(forms.Form):
|
class FormContacto(forms.Form):
|
||||||
asunto = forms.CharField()
|
asunto = forms.CharField(max_length=35, required=False, initial='Contacto')
|
||||||
email = forms.EmailField()
|
email = forms.EmailField(max_length=35)
|
||||||
msj = forms.CharField()
|
msj = forms.CharField(widget=forms.Textarea(attrs={'rows': 5, 'cols': 26}))
|
||||||
```
|
```
|
||||||
|
|
||||||
🔸️*python3 manage.py shell*
|
🔸️*python3 manage.py shell*
|
||||||
|
Loading…
Reference in New Issue
Block a user