#34656: Wrong HTML generation in Django admin's change_password form
-----------------------------------------+--------------------------
Reporter: Yaser Amiri | Owner: myself
Type: Bug | Status: assigned
Component: contrib.admin | Version: 4.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 1 |
-----------------------------------------+--------------------------
Context: contrib.admin package
In `auth/user/change_password.html` there is a condition that checks
existence of id_for_label for password1 field, the `{% endif %}` is closed
in the wrong position and if the condition return False, the HTML will be
corrupted (I'm not sure if it's possible to make the condition falsy)
Link:
[https://github.com/django/django/blob/549d6ffeb6d626b023acc40c3bb2093b4b25b3d6/django/contrib/admin/templates/admin/auth/user/change_password.html#L37]
--
Ticket URL: <https://code.djangoproject.com/ticket/34656>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070188c3c2a0db-e4f04083-26bd-4743-bd59-dbb01cc3fc12-000000%40eu-central-1.amazonses.com.