Ticket #18504: 18504.diff

File 18504.diff, 912 bytes (added by Aymeric Augustin, 12 years ago)
  • django/contrib/humanize/templatetags/humanize.py

    diff --git a/django/contrib/humanize/templatetags/humanize.py b/django/contrib/humanize/templatetags/humanize.py
    index 7a2e514..18ec1a4 100644
    a b def apnumber(value):  
    143143        return value
    144144    return (_('one'), _('two'), _('three'), _('four'), _('five'), _('six'), _('seven'), _('eight'), _('nine'))[value-1]
    146 @register.filter
    147147def naturalday(value, arg=None):
    148148    """
    149149    For date values that are tomorrow, today or yesterday compared to
    def naturalday(value, arg=None):  
    169169        return _('yesterday')
    170170    return defaultfilters.date(value, arg)
    172 @register.filter
    173173def naturaltime(value):
    174174    """
    175175    For date and time values shows how many seconds, minutes or hours ago
Back to Top