I want to mention what I consider to be a usability issue with Django forms. It has to do with there being no option to strip leading and trailing whitespace from CharFields, URLFields, EmailFields, etc. Ticket #4969 was to address this issue but was closed with as a 'wontfix', and I have seen other discussions on this issue.
As a developer, I know better than to enter spaces in a field, or to blank an existing entry with spaces. But non-technical users more often than not do not make this distinction. Here are some implications of not stripping these fields: 1. It let's the user get past required=True. You can set this behavior if you go to to admin-->sites, edit the display name by blanking it out with spaces, and save. The "this field is required" message is not displayed and the record is saved. Of course technically the field is not empty, but for all practical purposes it is. 2. An example of an even more serious problem is what happens if you blank out the domain name field of a site with spaces. Then you cannot even select the site from the list to edit it. There is no way to correct the error through normal procedures. 3. In another situation, it causes confusion on field errors. Consider an email field that is not required, but must be valid if it is entered. If the user enters an email address, then blanks it out with spaces, or just leaves one space before saving , he or she will get an error message to enter a valid email. This is very confusing, not to developers of course, but to others. They see an error message to enter a valid email on a field that is not required, and the field appears to be blank. 4. It also results in unwanted leading and trailing spaces. In most use cases, you don't want leading or trailing spaces in a char field and URL field, an email field, etc. I know this has been discussed before, but I hope this ticket can be reopened, and that stripping white space can at least be an option. I'm sure there are use cases where leading and trailing white space is significant, but in most use cases, not stripping white space causes usability issues that I feel compelled to address one way or another. This is not just theoretical - I have seen parallel problems in past applications during usability testing and with customer support. Thanks for considering this, and thanks for a great framework ! --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---