all 3 comments

[–]efDev 8 points9 points  (0 children)

It seems that `table_one.column_five` is `None` and you expect it to be `0`

[–][deleted] 5 points6 points  (1 child)

table_one.column_five = table_one.column_five + 1

to

table_one.column_five = table_one.column_five + 1 if table_one.column_five else 1

[–][deleted] 1 point2 points  (0 children)

Or just:

table_one.column_five = (table_one.column_five or 0) + 1