#5851: SplitDateTimeWidget (or MultiWidget) doesn't allow different attrs for
different fields
-------------------------------------+-------------------------------------
Reporter: ciantic@… | Owner: felixxm
Type: New feature | Status: assigned
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: SplitDateTimeWidget | Triage Stage: Accepted
MultiWidget |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* status: new => assigned
* needs_docs: 1 => 0
* owner: nobody => felixxm
* cc: felisiak.mariusz@… (added)
Comment:
I think that this is a issue specific for `SplitDateTimeWidget` and
`SplitHiddenDateTimeWidget`, because in general you can get the same
result in a different way e.g.:
{{{
MultiWidget(
widgets=(
Input(attrs={'class': 'foo'}),
Input(attrs={'class': 'bar'}),
)
)
}}}
IMO there is no need to complicate `MultiWidget`.
[https://github.com/django/django/pull/7843 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/5851#comment:14>
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/074.6ba1ab04b4b3d5873853a0eab6104dd7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.