Source

dynamodb-mapper / dynamodb_mapper / model.py

Diff from to

dynamodb_mapper/model.py

     # values dict in save as this would mean 'field does not exist' instead of
     # 'field exists and is False'.
     if isinstance(value, bool):
-        return 1 if value else 0
+        return int(value)
 
     if value or value == 0:
         return value