Add a "humanized" widget for DurationField in admin interface

521 views
Skip to first unread message

Artem Hruzd

unread,
Feb 22, 2020, 7:02:09 AM2/22/20
to Django developers (Contributions to Django itself)
In multiple projects I faced with issue to make a duration field easy for use for Admin users. I always back to custom solution and added simply 4 fields:

I found an open ticket with the same problem https://code.djangoproject.com/ticket/28354

Do you think this will be helper feature? Do I need go over this and implement it ?

Adam Johnson

unread,
Feb 25, 2020, 7:50:09 AM2/25/20
to django-d...@googlegroups.com
Hi Artem

I've used such a widget on a project. There's a third party package that implements such a custom widget: https://github.com/devangpadhiyar/django-durationwidget . However on the project we found it's a bit immature and forked it internally (with some customizations).

I think I'd like to see a third party package that implements this well with good test coverage before it makes its way into Django core. Imo the ability to select whether or not to display hours, microseconds, etc. is really useful too.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/fc1be9f6-0f16-42b9-9183-c1b42e388221%40googlegroups.com.


--
Adam
Reply all
Reply to author
Forward
0 new messages