Re: DateField does not update the date provided by hand

19 views
Skip to first unread message
Message has been deleted

Mike Dewhirst

unread,
Jul 27, 2017, 5:12:20 AM7/27/17
to Django users
On 27/07/2017 6:41 PM, pablochud wrote:
> Hi,
> is it normal that DateField make me to pick a date from datepicker and
> do not let me update the field by hand? - when trying to set a date by
> hand it automatically changing to date selected on datepicker. How can
> I let User to choose date both way?

Possibly by changing it to a CharField and handling user input yourself
... ?

>
> :)
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3e23da85-7850-4caa-8326-c84eb7eca0cf%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/3e23da85-7850-4caa-8326-c84eb7eca0cf%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Mike Dewhirst

unread,
Jul 27, 2017, 6:26:03 PM7/27/17
to django...@googlegroups.com
On 27/07/2017 9:14 PM, pablochud wrote:
> Yeah, but I would like datepicker too. if I changed it to CharField I
> would loose datepicker

True. Looks like you might have to dig into the javascript source for
the widget and make your own datepicker which takes random user input
and figures out what the entry means in terms of a date.

>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c12c6d1c-02ee-4991-9d37-c64642bfad7f%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/c12c6d1c-02ee-4991-9d37-c64642bfad7f%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages