Re: Why Django render DateField type as text instead of date ?

2018-01-23 Thread Collin Anderson
Hi, The history of why is here: https://code.djangoproject.com/ticket/16630#comment:11 You can get type="date" like so on your form: birth_date = forms.DateField(attrs={'type': 'date'}, required=False) Thanks, Collin On Tue, Jan 23, 2018 at 12:43 AM, Ruchit Bhatt

Re: Don't assume that missing fields from POST data are equal to an empty string value.

2018-01-23 Thread Collin Anderson
Maybe it would be helpful to have an option where it errors if (non-boolean) fields are non-existent in the POST data? (Though I have some GET-forms where I would not want that behavior) Maybe I could somehow set allow_missing_fields = True in that case? On Tue, Jan 23, 2018 at 4:56 AM, Tai Lee

RE: Default Authorization BackEnd Denying Permissions if ObjectProvided

2018-01-23 Thread Mehmet Dogan
Thanks for the response. Do you think what Florian or I sent is a good example to include in the docs for the way #1? From: Carlton Gibson Sent: Monday, January 22, 2018 2:13 AM To: Django developers (Contributions to Django itself) Subject: Re: Default Authorization BackEnd Denying Permissions

Re: Adding a bulk_save method to models

2018-01-23 Thread Neal Todd
Hi Tom, That's great, should be a helpful addition to core. Will follow the ticket and PR. Neal (Apologies - I hadn't spotted that you'd already referenced django-bulk-update in your ticket when I left my drive-by comment!) On Monday, January 22, 2018 at 7:41:11 PM UTC, Tom Forbes wrote: > >

Why Django render DateField type as text instead of date ?

2018-01-23 Thread Ruchit Bhatt
Hi folks, Here i am eager to find out why django render model dateField type as text ?? instead of *Is there any alternative or inbuilt method to render datefield as date ?* This is my code *models.py* class HumanUser(AbstractUser): birth_date = models.DateField(null=True,

Re: Don't assume that missing fields from POST data are equal to an empty string value.

2018-01-23 Thread Tai Lee
>From my perspective, this issue is about silent data loss, which is about one of the worst bugs you can have and one that Django typically tries very hard to avoid or fix, even if it breaks compatibility. It is extremely easy to cause silent data loss with the behaviour being discussed. For