#31189: Password field help texts generates invalid html when using as_p() and as_table() helpers. -------------------------------------+------------------------------------- Reporter: Marc Nieper- | Owner: nobody Wißkirchen | Type: | Status: closed Cleanup/optimization | Component: contrib.auth | Version: 3.0 Severity: Normal | Resolution: wontfix Keywords: | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by felixxm):
* status: new => closed * type: Bug => Cleanup/optimization * resolution: => wontfix Comment: It was fixed in admins' templates in 2d26b4637f0318736955b54b34f270fe9500f795, see #27207. Forms in `django.contrib.auth.forms` are designed to render properly in Django admin and I don't think that we should override helpers in admin forms to generate valid HTML in all helpers `as_ul()`, `as_p()`, and `as_table()`, moreover even overriding `help_text_html` won't help in `as_p()`. There's no feasible solution. You can re-use templates from `admin/templates/admin`, e.g. `admin/templates/admin/includes/fieldset.html` if you don't want to write you're own custom templates. -- Ticket URL: <https://code.djangoproject.com/ticket/31189#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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.e24a442c4d9a32580ff7e1237c7c873f%40djangoproject.com.