Re: Enter valid date error

2019-08-07 Thread ANi
Thanks for your help! Sipum, I have tried many possibilities and it is some how fixed and I actually don't know why, like why it is broken. but if you look into the class DateInput provided by Django: class DateInput(DateTimeBaseInput): format_key = 'DATE_INPUT_FORMATS' template_name =

Re: Enter valid date error

2019-08-06 Thread sachinbg sachin
Give the format in year month date it will be resolved then On Tue, Aug 6, 2019, 10:24 PM DPM wrote: > Hey Ani, > > Change format_key = DATE_INPUT_FORMATS. > Omit the quotes. Then will work fine. > > > On Tue, 6 Aug, 2019, 11:59 AM ANi, wrote: > >> I've change the default date field widget

Re: Enter valid date error

2019-08-06 Thread DPM
Hey Ani, Change format_key = DATE_INPUT_FORMATS. Omit the quotes. Then will work fine. On Tue, 6 Aug, 2019, 11:59 AM ANi, wrote: > I've change the default date field widget slightly, > but only like this and also define the DATE_INPUT_FORMATS > > > > class DateInput(DateTimeBaseInput): >

Enter valid date error

2019-08-06 Thread ANi
I've change the default date field widget slightly, but only like this and also define the DATE_INPUT_FORMATS class DateInput(DateTimeBaseInput): input_type = 'date' format_key = 'DATE_INPUT_FORMATS' DATE_INPUT_FORMATS = [ '%Y-%m-%d', ] but still get error on the date field, only success at