[Django] #28354: Human readable duration field.

33 views
Skip to first unread message

Django

unread,
Jul 1, 2017, 11:36:28 AM7/1/17
to django-...@googlegroups.com
#28354: Human readable duration field.
-------------------------------------+-------------------------------------
Reporter: cuurda | Owner: nobody
Type: New | Status: new
feature |
Component: Forms | Version: 1.11
Severity: Normal | Keywords: Duration field.
Triage Stage: | Forms.
Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 1 |
-------------------------------------+-------------------------------------
Make a widget witch represents duration field as four NumberFields.

--
Ticket URL: <https://code.djangoproject.com/ticket/28354>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 1, 2017, 11:37:40 AM7/1/17
to django-...@googlegroups.com
#28354: Human readable duration field.
-------------------------------------+-------------------------------------
Reporter: cuurda | Owner: cuurda
Type: New feature | Status: assigned
Component: Forms | Version: 1.11
Severity: Normal | Resolution:

Keywords: Duration field. | Triage Stage:
Forms. | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by cuurda):

* owner: nobody => cuurda
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/28354#comment:1>

Django

unread,
Jul 3, 2017, 8:52:23 AM7/3/17
to django-...@googlegroups.com
#28354: Human readable duration field.
-------------------------------------+-------------------------------------
Reporter: Nikita Levonovich | Owner: (none)
Type: New feature | Status: new
Component: Forms | Version: 1.11
Severity: Normal | Resolution:

Keywords: Duration field. | Triage Stage:
Forms. | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Nikita Levonovich):

* owner: Nikita Levonovich => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/28354#comment:2>

Django

unread,
Jul 3, 2017, 8:04:00 PM7/3/17
to django-...@googlegroups.com
#28354: Add a "humanized" widget for DurationField

-------------------------------------+-------------------------------------
Reporter: Nikita Levonovich | Owner: (none)
Type: New feature | Status: new
Component: Forms | Version: 1.11
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
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* stage: Unreviewed => Someday/Maybe


Comment:

I'm uncertain if this is something that must be shipped with Django.
Perhaps seeing a proposal will help evaluate the idea.

--
Ticket URL: <https://code.djangoproject.com/ticket/28354#comment:3>

Django

unread,
Sep 28, 2018, 4:52:21 PM9/28/18
to django-...@googlegroups.com
#28354: Add a "humanized" widget for DurationField
-------------------------------------+-------------------------------------
Reporter: Nikita Levonovich | Owner: (none)
Type: New feature | Status: new
Component: Forms | Version: 1.11
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 JensTimmerman):

This should probably be 5 number fields, since the supported format is
[DD] [HH:[MM:]]ss[.uuuuuu]?

--
Ticket URL: <https://code.djangoproject.com/ticket/28354#comment:4>

Django

unread,
Sep 29, 2018, 3:17:51 AM9/29/18
to django-...@googlegroups.com
#28354: Add a "humanized" widget for DurationField
-------------------------------------+-------------------------------------
Reporter: Nikita Levonovich | Owner: (none)
Type: New feature | Status: new
Component: Forms | Version: 1.11
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 Nikita Levonovich):

Jens Timmerman, Yea, you are right. I made some wrong counting.

--
Ticket URL: <https://code.djangoproject.com/ticket/28354#comment:5>

Django

unread,
Feb 20, 2020, 1:21:04 PM2/20/20
to django-...@googlegroups.com
#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
-------------------------------------+-------------------------------------
Changes (by Artem):

* owner: (none) => Artem


* status: new => assigned

* version: 1.11 => master


--
Ticket URL: <https://code.djangoproject.com/ticket/28354#comment:6>

Django

unread,
Feb 20, 2020, 2:07:19 PM2/20/20
to django-...@googlegroups.com
#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 Artem):

Will this widget be helpful ? I was using this in my few Django projects.
[[Image(https://user-
images.githubusercontent.com/3278913/74968911-a9681700-5441-11ea-
9a66-db804c22b52f.png)]]

--
Ticket URL: <https://code.djangoproject.com/ticket/28354#comment:7>

Django

unread,
Mar 6, 2020, 11:40:17 AM3/6/20
to django-...@googlegroups.com
#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

unread,
Mar 6, 2020, 3:39:13 PM3/6/20
to django-...@googlegroups.com
#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
-------------------------------------+-------------------------------------
Changes (by Adam (Chainz) Johnson):

* cc: Adam (Chainz) Johnson (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/28354#comment:9>

Reply all
Reply to author
Forward
0 new messages