[Django]-Boolean field not saving in Django form

2👍

I have no idea if this is the problem, but the line:

fields = ('one_time_service')

is wrong. That’s not a single element tuple, that’s a string with parens around it. Add a comma to make it a tuple:

fields = ('one_time_service',)

Edit: also, form.save() does not update any database records — it creates a new one! That may be your problem.

Leave a comment