Out of curiosity, I took a look at magic-removal source to see what
changes would be needed for this. I think that in the case of integer
fields it's sufficient to add whitespace into the validation regexp in
core/validators.py:
integer_re = re.compile(r'^\s*-?\d+\s*$')

This should work because Python's int() internally strips the string.

Other data types might need additional changes for html2python() in
forms/__init__.py


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to