[Django] #30236: should Use autocapitalize="none"

17 views
Skip to first unread message

Django

unread,
Mar 4, 2019, 7:27:03 PM3/4/19
to django-...@googlegroups.com
#30236: should Use autocapitalize="none"
------------------------------------------------+------------------------
Reporter: Clayton Daley | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.auth | Version: 2.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
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`).

--
Ticket URL: <https://code.djangoproject.com/ticket/30236>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 4, 2019, 7:27:22 PM3/4/19
to django-...@googlegroups.com
#30236: Username Fields should use autocapitalize="none"
-------------------------------------+-------------------------------------

Reporter: Clayton Daley | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: contrib.auth | Version: 2.1
Severity: Normal | Resolution:

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

--
Ticket URL: <https://code.djangoproject.com/ticket/30236#comment:1>

Django

unread,
Mar 4, 2019, 7:35:25 PM3/4/19
to django-...@googlegroups.com
#30236: UsernameField should use autocapitalize="none"
--------------------------------------+------------------------------------

Reporter: Clayton Daley | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.auth | Version: 2.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Tim Graham):

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/30236#comment:2>

Django

unread,
Mar 5, 2019, 5:00:29 AM3/5/19
to django-...@googlegroups.com
#30236: UsernameField should use autocapitalize="none"
-------------------------------------+-------------------------------------
Reporter: Clayton Daley | Owner:
Type: | pmisteliac
Cleanup/optimization | Status: assigned
Component: contrib.auth | Version: 2.1

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by pmisteliac):

* status: new => assigned
* owner: nobody => pmisteliac


--
Ticket URL: <https://code.djangoproject.com/ticket/30236#comment:3>

Django

unread,
Mar 7, 2019, 6:58:10 PM3/7/19
to django-...@googlegroups.com
#30236: UsernameField should use autocapitalize="none"
-------------------------------------+-------------------------------------
Reporter: Clayton Daley | Owner:
Type: | pmisteliac
Cleanup/optimization | Status: assigned
Component: contrib.auth | Version: 2.1

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Nick Pope):

Out of curiosity, is the problem solved by using
{{{autocomplete="username"}}}? There is already #29379 open for that.

Also see a past
[https://github.com/django/django/pull/9245#issuecomment-356712601
comment] regarding setting these attributes on the widgets from the form.

--
Ticket URL: <https://code.djangoproject.com/ticket/30236#comment:4>

Django

unread,
Mar 7, 2019, 10:47:00 PM3/7/19
to django-...@googlegroups.com
#30236: UsernameField should use autocapitalize="none"
-------------------------------------+-------------------------------------
Reporter: Clayton Daley | Owner:
Type: | pmisteliac
Cleanup/optimization | Status: assigned
Component: contrib.auth | Version: 2.1

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Clayton Daley):

They all apply to inputs but are different e.g. see
https://uxcellence.com/2014/tweaking-automatic-form-input

--
Ticket URL: <https://code.djangoproject.com/ticket/30236#comment:5>

Django

unread,
Mar 24, 2019, 3:07:18 PM3/24/19
to django-...@googlegroups.com
#30236: UsernameField should use autocapitalize="none"
-------------------------------------+-------------------------------------
Reporter: Clayton Daley | Owner:
Type: | pmisteliac
Cleanup/optimization | Status: assigned
Component: contrib.auth | Version: 2.1

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by pmisteliac):

* has_patch: 0 => 1


Comment:

PR https://github.com/django/django/pull/11117 posted

--
Ticket URL: <https://code.djangoproject.com/ticket/30236#comment:6>

Django

unread,
Mar 25, 2019, 3:43:13 PM3/25/19
to django-...@googlegroups.com
#30236: UsernameField should use autocapitalize="none"
-------------------------------------+-------------------------------------
Reporter: Clayton Daley | Owner:
Type: | pmisteliac
Cleanup/optimization | Status: assigned
Component: contrib.auth | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* version: 2.1 => master
* needs_tests: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/30236#comment:7>

Django

unread,
Mar 28, 2019, 1:11:29 PM3/28/19
to django-...@googlegroups.com
#30236: UsernameField should use autocapitalize="none"
-------------------------------------+-------------------------------------
Reporter: Clayton Daley | Owner:
Type: | pmisteliac
Cleanup/optimization | Status: assigned
Component: contrib.auth | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* needs_tests: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/30236#comment:8>

Django

unread,
Mar 29, 2019, 8:18:17 AM3/29/19
to django-...@googlegroups.com
#30236: UsernameField should use autocapitalize="none"
-------------------------------------+-------------------------------------
Reporter: Clayton Daley | Owner:
Type: | pmisteliac
Cleanup/optimization | Status: assigned
Component: contrib.auth | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/30236#comment:9>

Django

unread,
Mar 29, 2019, 10:26:18 AM3/29/19
to django-...@googlegroups.com
#30236: UsernameField should use autocapitalize="none"
-------------------------------------+-------------------------------------
Reporter: Clayton Daley | Owner:
Type: | pmisteliac
Cleanup/optimization | Status: closed
Component: contrib.auth | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"9410db968388820e43aa453a640dd4720fff0c0f" 9410db96]:
{{{
#!CommitTicketReference repository=""
revision="9410db968388820e43aa453a640dd4720fff0c0f"
Fixed #30236 -- Made UsernameField render with autocapitalize="none" HTML
attribute.

This prevents automatic capitalization, which is the default behavior in
some browsers.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30236#comment:10>

Django

unread,
Aug 2, 2019, 5:55:01 PM8/2/19
to django-...@googlegroups.com
#30236: UsernameField should use autocapitalize="none"
-------------------------------------+-------------------------------------
Reporter: Clayton Daley | Owner:
Type: | pmisteliac
Cleanup/optimization | Status: closed
Component: contrib.auth | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Nick Pope):

[https://github.com/django/django/pull/11624 PR] to add a release note.

(A release note was added for the `autocomplete` attribute that was
committed more recently and I think it makes sense to highlight that this
common source of irritation has been addressed.)

--
Ticket URL: <https://code.djangoproject.com/ticket/30236#comment:11>

Django

unread,
Aug 3, 2019, 5:15:12 AM8/3/19
to django-...@googlegroups.com
#30236: UsernameField should use autocapitalize="none"
-------------------------------------+-------------------------------------
Reporter: Clayton Daley | Owner:
Type: | pmisteliac
Cleanup/optimization | Status: closed
Component: contrib.auth | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by felixxm):

This is just a cleanup, I don't think that we need release notes.
`autocomplete` is a new feature that's why it's mentioned in release
notes.

--
Ticket URL: <https://code.djangoproject.com/ticket/30236#comment:12>

Reply all
Reply to author
Forward
0 new messages