There seems to be a raging and unresolved discussion about how to
address the issue of stripping whitespace from form fields in future
versions of Django over on the Developers group:
http://groups.google.com/group/django-developers/browse_thread/thread/90352cc0da78390b
.

In the present, what is the proper place to strip whitespace?

I've starting down this path:

http://www.peterbe.com/plog/automatically-strip-whitespace-in-django-forms

by setting up a BaseModelForm class, but i don't necessarily like the
fact that I could have a field with "blank=False" that will still
validate if you have an input of just whitespace, since apparently
"clean" gets called after validation takes place.  Is the override of
full_clean referenced in the comments the way around this then? Seems
pretty hacky.

Thanks

Ben

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en.

Reply via email to