kvesteri / sqlalchemy-defaults

Smart SQLAlchemy defaults for lazy guys, like me.
Other
16 stars 7 forks source link

Min and max column info attrs are expected to be integers #6

Closed vesauimonen closed 10 years ago

vesauimonen commented 10 years ago

The method append_check_constraints (https://github.com/kvesteri/sqlalchemy-defaults/blob/d92dd9a2dfb0291fc643adb1ea76b7b41233d4f7/sqlalchemy_defaults/__init__.py#L74-87) expects that the min and max column info attributes are integers. At least for Date and DateTime columns this is not the case. See example from WTForms-Alchemy's documentation regarding DateTime column and min attribute: http://wtforms-alchemy.readthedocs.org/en/latest/validators.html#range-validators.