#13009: provide django.forms field type info for use in templates
-------------------------------------+-------------------------------------
Reporter: Tom von Schwerdtner | Owner: David
| Smith
Type: New feature | Status: assigned
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Claude Paroz):
Repeating here my proposal on the PR: create a new `BoundField` property
(`widget_type`?) returning the lowercased widget class name stripped from
the `widget` or `input` strings?
In that case, if I have defined a `MyCustomWidget`, the
(bound)field.widget_type would by `mycustom`.
--
Ticket URL: <https://code.djangoproject.com/ticket/13009#comment:9>
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/062.b673b829e4e38b1a22e866d8487cec52%40djangoproject.com.