Open mrkotee opened 1 year ago
Have iso8601.iso8601.ParseError when try to filter DateField by YEAR.
To Reproduce
class SomeModel(MODEL): start_date = fields.DateField() end_date = fields.DateField() await SomeModel.filter(start_date__year=2023)
Look like to_db_value must not validate value if used date filters
p.s. in DateTimeField all works correctly
tortoise-orm version 0.19.3 and 0.20.0
Have iso8601.iso8601.ParseError when try to filter DateField by YEAR.
To Reproduce
Look like to_db_value must not validate value if used date filters
p.s. in DateTimeField all works correctly
tortoise-orm version 0.19.3 and 0.20.0