mercredi 2 mai 2018

Trouble for rendering a simple checkbox in Django

I try to render a simple checkbox (a boolean checkbox) in Django.

form.py

class Form(forms.Form):
     state = forms.BooleanField()

html

<input type="checkbox">  
<label></label>
</input>

It display the checkbox correctly but it's impossible for me to check the box...




Aucun commentaire:

Enregistrer un commentaire