#6362: Remove blank spaces with strip when validating the data
---------------------------------------------+------------------------------
Reporter: marinho | Owner: nobody
Status: new | Milestone:
Component: Forms | Version: SVN
Resolution: | Keywords: blank space strip
Stage: Design decision needed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------+------------------------------
Comment (by marinho):
In my opinion would be simple have an attribute **"keep_blank_spaces"** in
**forms.CharField**, with defaulf value **False**. Then who wants to keep
the blank space just set something like this:
{{{
field = forms.CharField(max_length=20, keep_blank_spaces=True)
}}}
I'm sure most of cases people don't want keep blank spaces at left or
right of cleaned strings.
--
Ticket URL: <http://code.djangoproject.com/ticket/6362#comment:24>
Django <http://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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---