#16157: Make sure that fields that are presented as single-line are validated as such -------------------------------------+------------------------------------- Reporter: tkolar | Owner: nobody Type: New | Status: new feature | Component: Forms Milestone: | Severity: Normal Version: SVN | Keywords: CharField multiline Resolution: | validator Triage Stage: Accepted | Has patch: 0 Needs documentation: 1 | Needs tests: 1 Patch needs improvement: 0 | Easy pickings: 0 -------------------------------------+------------------------------------- Changes (by melinath):
* needs_better_patch: => 0 * component: Database layer (models, ORM) => Forms * needs_tests: => 1 * needs_docs: => 1 * type: Bug => New feature * stage: Unreviewed => Accepted Comment: I've marked this as Accepted, but I do have slight misgivings. It seems like your intent is to add the validator to every CharField - but a CharField won't necessarily be rendered as an <input type="text">. I'm also not sure whether you're planning on patching the model field or the form field. Since this is related to what the html input box looks like, it seems more like a form field patch, especially since I don't know that databases would actually have a problem storing newlines as long as the string was short enough. -- Ticket URL: <https://code.djangoproject.com/ticket/16157#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.