#28354: Add a "humanized" widget for DurationField
-------------------------------------+-------------------------------------
Reporter: Nikita Levonovich | Owner: Artem
Type: New feature | Status: assigned
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: Duration field. | Triage Stage:
Forms. | Someday/Maybe
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Comment (by Rupert Baker):
Hi Artem,
I'm currently working on a project which needed a Duration Field widget,
so we built something similar subclassing the MultiFieldWidget with 4x
NumberInputs. Ours was slightly different as we didn't have an input for
days but did for milliseconds (converted into microseconds). See dropbox
screenshot.
I'm not a django expert but I'd be interested to discuss your approach
with you as I think its a valid features.
Rupert
[[Image(https://www.dropbox.com/s/v7ttnzs8k1zi51n/Screenshot%202020-03-06%20at%2016.31.30.png?dl=0)]]
--
Ticket URL: <https://code.djangoproject.com/ticket/28354#comment:8>
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/064.40ac94600224ccb37d22a4314f101f4c%40djangoproject.com.