Le samedi 23 mai 2020 16:41:04 UTC+2, Toby Such a écrit : > > Maybe the logic for calculating the time before formatting could be taken > out of the function? That way it would be far easier to implement your own > custom versions of the function without copying and pasting, and makes the > code more readable too. >
I like that, make it easy to customize, in the same spirit as the Truncator class. Feel free to ping me regarding the strings stuff and translatability, I worked a bit on that in the past. Claude -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/9dca9cb1-b2cb-4556-95e3-1f80c425c03f%40googlegroups.com.
