admin JS error 'document.getElementById("") is null' on adding new user
|Reported by:||carljm||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.