#30275: Autofocus the first field in contrib.admin add form
----------------------------------+--------------------------------------
Reporter: Nikita Ivanov | Owner: nobody
Type: Uncategorized | Status: closed
Component: contrib.admin | Version: 2.1
Severity: Normal | Resolution: worksforme
Keywords: focus, autofocus | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Changes (by Carlton Gibson):
* status: new => closed
* resolution: => worksforme
Comment:
No me nether... the code from 2010/2011 (74ffca17) is
[https://github.com/django/django/blob/0b8abd7cdf1a5bae96dd0640af10ad504f104d06/django/contrib/admin/static/admin/js/change_form.js#L16-L18
still there more or less unchanged] — it just moved file.
The behaviour I'm seeing is correct. With both e.g. an empty field
`auth.Group` admin and a model where the first field has a default.
I'll close on that basis, but happy to re-open if we can pin something
more specific down.
--
Ticket URL: <https://code.djangoproject.com/ticket/30275#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.d93cef4e6b4631a34324d470c25b84ac%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.