0
This is giving the following error in my Django 1.9 form
See that on the label gets the :>
in the end.
I DON’T WANT TO SEE THE LARGER SIGN (>) AT THE END OF THE LABEL
Ex: Nome: >
Follow my code forms.py
class FormContact(forms.Form):
name = forms.CharField(label='Nome', widget=forms.TextInput(attrs={'class': 'form-control'}))
email = forms.EmailField(label='Email', widget=forms.TextInput(attrs={'class': 'form-control'}))
phone = forms.CharField(label='Telefone', max_length=13, widget=forms.TextInput(attrs={'class': 'form-control'}))
message = forms.CharField(label='Mensagem', widget=forms.Textarea(attrs={'class': 'form-control'}), max_length=500 )
Even without the widget gets bug
HTML of contato.html
{% for field in form %}
<div class="form-group">
<label for={{ field.label_tag }}> {{ field_label_tag }} </label>
{{ field }}
</div>
{% endfor %}
What error are you getting?
– gato
@Denercarvalho in the label is showing the two points and the greater sign (:>). It should not appear.
– Leonardo Nascimento Cintra