Closed vesauimonen closed 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.
append_check_constraints
min
max
Date
DateTime
The method
append_check_constraints
(https://github.com/kvesteri/sqlalchemy-defaults/blob/d92dd9a2dfb0291fc643adb1ea76b7b41233d4f7/sqlalchemy_defaults/__init__.py#L74-87) expects that themin
andmax
column info attributes are integers. At least forDate
andDateTime
columns this is not the case. See example from WTForms-Alchemy's documentation regardingDateTime
column andmin
attribute: http://wtforms-alchemy.readthedocs.org/en/latest/validators.html#range-validators.