I would like to use the django.contrib.humanize outside of a template, actually inside a model to humanize some dates in some text messages.
Is it possible? How can I do this?
I would like to use the django.contrib.humanize outside of a template, actually inside a model to humanize some dates in some text messages.
Is it possible? How can I do this?
You can import the functions in the model: