Skip to content

Commit

Permalink
[1.5.x] Fixed #20711 -- Fixed broken link in timesince.py docstring
Browse files Browse the repository at this point in the history
Backport of d63327d from master.
  • Loading branch information
ArcTanSusan authored and timgraham committed Jul 7, 2013
1 parent 80673e2 commit 4140bfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django/utils/timesince.py
Expand Up @@ -16,7 +16,8 @@ def timesince(d, now=None, reversed=False):
displayed. For example, "2 weeks, 3 days" and "1 year, 3 months" are
possible outputs, but "2 weeks, 3 hours" and "1 year, 5 days" are not.
Adapted from http://blog.natbat.co.uk/archive/2003/Jun/14/time_since
Adapted from
http://web.archive.org/web/20060617175230/http://blog.natbat.co.uk/archive/2003/Jun/14/time_since
"""
chunks = (
(60 * 60 * 24 * 365, lambda n: ungettext('year', 'years', n)),
Expand Down

0 comments on commit 4140bfb

Please sign in to comment.