How can I override Django filter
I want to override timesin开发者_如何学JAVAce
Django's template filter for creating a more efficient filter for getting relative times.
How can I do it?
You can also create your own filter to do what you want: http://docs.djangoproject.com/en/dev/howto/custom-template-tags/
Monkeypatch django.utils.timesince.timesince
with your desired function.
精彩评论