Closed josejachuf closed 7 years ago
The validators gt, gte, lt and lte only work for integers? I have a model with a decimal field and validation fails
if validation is
validation = { 'fdecimal': {'gte': 0} }
def _gt(self, val1, val2, eq=False): if eq: return val1 >= val2 return val1 > val2 TypeError: '>=' not supported between instances of 'str' and 'int'
def _gt(self, val1, val2, eq=False): if eq: return val1 >= val2 return val1 > val2
TypeError: '>=' not supported between instances of 'str' and 'int'
validation = { 'fdecimal': {'gte': decimal.Decimal('0')} }
TypeError: '>=' not supported between instances of 'str' and 'decimal.Decimal'
@josejachuf this is fixed in the current master. I will probably release also a bugfix version of the 1.1 later today, 'cause I'm not ready to release 1.2 yet.
@josejachuf this is published also in 1.1.2
The validators gt, gte, lt and lte only work for integers? I have a model with a decimal field and validation fails
if validation is
if validation is
if validation is