stevearc / flywheel

Object mapper for Amazon's DynamoDB
MIT License
128 stars 25 forks source link

Unable to use to boolean #58

Closed trondhindenes closed 7 years ago

trondhindenes commented 7 years ago

I'm trying to store a True/False in DynamoDB. I'm getting this error:

TypeError: Field 'auto_retry_job' must be <type 'unicode'>! 'True'

I have only configured the auto_retry_job as a Field() without any special type. Should this work?

trondhindenes commented 7 years ago

Figured this out. solution was to specify the native python type in the Field() constructor. I may be slow, but the documentation could maybe be a bit clearer on the fact that this is allowed (I was getting the impression that only the "flywheel types" were allowed.