FLASK PYTHON: TypeError: object of type ‘int’ has no len()

Solution
price = IntegerField(label='Price:', validators=[DataRequired(), NumberRange(min=1, max=10)])