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 =
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
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):
>
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
4 matches
Mail list logo