UsernameField should use autocapitalize="none"
IOS devices often auto-capitalize the first letter in input fields. While this may be OK in a lot of places, it's not an acceptable behavior while usernames remain case sensitive (i.e. https://code.djangoproject.com/ticket/2273).
To address this issue, username inputs should include autocapitalize="none" among the attrs for the username (and possibly password) fields. I ran into this issue with django.contrib.auth.forms.AuthenticationForm, where autocapitalize="none" could be added to the attrs in the property-based field. However, I could see the argument for fixing it at the UsernameField so it cascades to other uses (e.g. UserCreationForm and UserChangeForm).
Change History
(12)
| Summary: |
should Use autocapitalize="none" → Username Fields should use autocapitalize="none"
|
| Summary: |
Username Fields should use autocapitalize="none" → UsernameField should use autocapitalize="none"
|
| Triage Stage: |
Unreviewed → Accepted
|
| Owner: |
changed from nobody to pmisteliac
|
| Status: |
new → assigned
|
| Needs tests: |
set
|
| Version: |
2.1 → master
|
| Triage Stage: |
Accepted → Ready for checkin
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
Out of curiosity, is the problem solved by using
autocomplete="username"? There is already #29379 open for that.Also see a past comment regarding setting these attributes on the widgets from the form.