On Tue, 2008-07-15 at 00:38 -0700, Shantp wrote:
> Hi all,
> 
> This seems like it will have an obvious answer but I did a lot of
> searching and can't find the answer. The timesince template tag
> returns 2 outputs like "2 days, 3 hours". How can I limit the output
> to only 1 thing?

By writing your own template tag. It's easy, try it.

The timesince filter works in one way that is useful in a number of
situations. It's not worth making something that simple take a number of
config options, since writing a version that does exactly what you want
is very simple.

Regards,
Malcolm




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to