I am a little puzzled by the Date field.
I need to store a year only (1998, 2008, 2020, etc). I will use that as a number.
I don’t want a user to use a date widget to select the year, just typing 2017 would be fine.
But if I use the Integer field, it displays like “1,998” “2,008” or “2,020” — a kind weird.
How would you recommend to implement this function?
PS: Using strings… I don’t want people typing “fgfgfg” instead of a year, numbers only allowed. I don’t want commas or pesky “select the date” widgets…
Maybe, I can use String type and check string with year.isdecimal() with on_change method?