#8453: Error in filter "timesince"
-----------------------------+----------------------------------------------
 Reporter:  carlou           |       Owner:  nobody    
   Status:  new              |   Milestone:  1.0       
Component:  Template system  |     Version:  1.0-beta-1
 Keywords:  timesince        |       Stage:  Unreviewed
Has_patch:  0                |  
-----------------------------+----------------------------------------------
 {{{
 #!python
 def timesince(value, arg=None):
     """Formats a date as the time since that date (i.e. "4 days, 6
 hours")."""
     from django.utils.timesince import timesince
     if not value:
         return u''
     if arg:
         return timesince(arg, value)
     return timesince(value)
 timesince.is_safe = False
 }}}
 It should be "return timesince(value, arg)"

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8453>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to