I have a table model which has a mapping for the database fields and everything seems to work well when I call self.model.submitAll() but there is one slight hiccup…
I just can’t get the state of any checkbox to store in the DB.
The mapping works great when it loads a record and the checkbox will reflect the correct state when the record has a 0 (zero) or 1 in the column, but if I change the sate of the checkbox it does not get updated in the DB.
This is the mapping line:
self.mapper.addMapping(self.match_exact_checkBox, 5)
The SQLite DB has the field type set as text and displays the correct checkbox state if it contains any of the following:
0 or 1 or True or False
It just won’t update in the DB if I use:
self.model.submitAll()
What am I doing wrong?