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?
Copyright © 2021 Jogjafile Inc.
You can import the functions in the model: