My html:
<input type="checkbox" name="subscribe" />
My model:
class UserProfile(models.Model):
user = models.OneToOneField(User)
subscribe = models.BooleanField(default=True)
How to toggle the checkbox after checkbox clicked? Any examples?
Thanks
Aucun commentaire:
Enregistrer un commentaire