* ui_ux: => 0
* easy: => 0
* stage: Design decision needed => Accepted
Comment:
The first solution (making the fix to `MultiWidget`) is the right way to
go.
--
Ticket URL: <https://code.djangoproject.com/ticket/5851#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by julien):
#14718 was closed as duplicate. See also #16754 for a related issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/5851#comment:6>
Comment (by julien):
#10343 was also closed as dupe.
--
Ticket URL: <https://code.djangoproject.com/ticket/5851#comment:7>
Comment (by jacob):
And other: #16754.
--
Ticket URL: <https://code.djangoproject.com/ticket/5851#comment:8>
* cc: kmike84@… (added)
* needs_better_patch: 0 => 1
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/5851#comment:9>
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
* needs_docs: 0 => 1
Comment:
Attaching a patch that allows passing a list of attrs into the multiwidget
(first approach).
Includes some simple tests.
No documentation yet.
--
Ticket URL: <https://code.djangoproject.com/ticket/5851#comment:10>
* cc: charette.s@… (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/5851#comment:11>
* cc: james.kirsop@… (added)
Comment:
Would love to see this reviewed at some stage. It would be particularly
helpful in supporting the "placeholder" attribute.
--
Ticket URL: <https://code.djangoproject.com/ticket/5851#comment:12>
Comment (by claudep):
Before this is reviewed, we should have a pull request with the proposed
patch, including tests and docs.
--
Ticket URL: <https://code.djangoproject.com/ticket/5851#comment:13>
* 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>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/5851#comment:15>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/5851#comment:16>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/5851#comment:17>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"0034e9af18f3d393a6dd2389ffbba4c919b1d7d7" 0034e9a]:
{{{
#!CommitTicketReference repository=""
revision="0034e9af18f3d393a6dd2389ffbba4c919b1d7d7"
Fixed #5851 -- Allowed specifying different HTML attrs for
SplitDateTimeWidget subwidgets.
Thanks Tim Graham and Nick Pope for review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/5851#comment:18>