#29153: Ease customizing the label attrs on a model form field
------------------------------+--------------------------------------
Reporter: ChristophRob | Owner: nobody
Type: New feature | Status: closed
Component: Forms | Version: 2.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 Tim Graham):
* status: new => closed
* resolution: => wontfix
Comment:
Thanks for the clarifying edits. I guess you're running into the problem
described on [https://stackoverflow.com/questions/6959178/how-to-set-css-
class-of-a-label-in-a-django-form-declaration Stack Overflow].
I'm not sure if the use case is common enough to add a field attribute for
this. Usually I style labels using CSS3 selectors. If you can get
consensus on a proposal on the DevelopersMailingList, we can reopen the
ticket. Generally, the consensus has been that if you need to make much
customization to form rendering, you should iterate over the fields rather
than using `{{ form }}`.
--
Ticket URL: <https://code.djangoproject.com/ticket/29153#comment:3>
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/070.6d2d4e624f6b9735df3bda42e6900d6d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.