Opened 16 years ago
Closed 16 years ago
#10794 closed (duplicate)
admin JS error 'document.getElementById("") is null' on adding new user
Reported by: | Carl Meyer | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
On trunk Django, when trying to add a new user via the admin, the form contains two similar JS snippets, both trying to provide auto-focus on the first field. One is hardcoded in the admin/auth/user/add_form.html template, and works fine. The other is coming from somewhere else, and the id-selector in it is an empty string, which causes an error.
Note:
See TracTickets
for help on using tickets.
This is a duplicate of #10651.