Humanize duration fields

90 views
Skip to first unread message

Yasiel Cabrera

unread,
Jan 11, 2021, 6:58:07 PM1/11/21
to Django developers (Contributions to Django itself)
Hey guys,

I'm starting this thread to consult if make sense add a new filter (naturalduration) in django.contrib.humanize to humanize duration fields. Duration fields are native in django since 1.8 version I believe but there is not native way to humanize them as I see.

If you approve the proposal, I can create the filter & docs.

Cheers,
Yasiel Cabrera 

Adam Johnson

unread,
Jan 12, 2021, 6:05:57 AM1/12/21
to django-d...@googlegroups.com
This seems like a sensible addition, and could possibly reuse the translated strings from within naturaltime. Have you got an example implementation?

--
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/ec808bc6-b101-4fd5-8118-086532d72f57n%40googlegroups.com.


--
Adam

Yasiel Cabrera

unread,
Jan 12, 2021, 8:15:22 AM1/12/21
to Django developers (Contributions to Django itself)
I haven't any implementation yet. I'm going to do an implementation trying to reuse the naturaltime translations and I'm going back here with it
Reply all
Reply to author
Forward
0 new messages