Re: Make input field remove newlines from value

2018-11-02 Thread Carlton Gibson
Hi Jakub. Definitely stripping input isn't something I'd want to add: what if I want to accept input with trailing whitespace? Rather, the approach is to transform the incoming data in your form or serialiser at the clean or validation step. See: * https://docs.djangoproject.com/en/2.1/r

Make input field remove newlines from value

2018-11-01 Thread Jakub Kleň
I created this ticked today, and it got closed with a wontfix flag, but I still think it would be a good idea to implement: https://code.djangoproject.com/ticket/29912 The reason why it got closed is that django shouldn't modify the input like that, but the link which is mentioned in the respons