On 02/04/2015 02:00 AM, Tom Christie wrote:
>> it will be backwards incompatible for every Django installation out
> there, but also because throwing away data that the user actually
> entered should be an opt-in, not opt-out behavior.
> 
> If adequately called out I think there'd be a valid case that the
> current and future issues it'll be causing to applications right now
> would outweigh the risk of compatibility breakages. I can see a couple
> of cases where I might not want stripped whitespace, but only in
> slightly contrived and edge case situations.
> 
> Validating and normalizing input at the field level in a way that
> supports the common case by default seems like a good plan to me. I'm
> not sure I see any great difference between a user entering "3.1" in an
> integer field and having 3 returned is so very different from having
> "hello " return "hello" on a char field. And we're not of course
> throwing anything away at the `request.POST` or `Form` layer - it's only
> once we're validating an individual field that the normalization is
> being applied.
> 
> I don't have an great investment in this either way around, but I think
> it's a valid user-focused improvement worth considering *if* someone
> actually puts together a pull request for it.

I agree with all of what Tom says.

Carl

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/54D24C59.5010801%40oddbird.net.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to