1
0
mirror of https://github.com/django/django.git synced 2025-10-31 01:25:32 +00:00

Fixed #7443: Corrected a long standing mistake in the timesince/timeuntil filters when using a parameter for 'now'. Thanks to Andrew Shearer <ashearerw@shearersoftware.com> for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8481 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee
2008-08-23 12:52:04 +00:00
parent a0e87b771b
commit 46da8ac9e5
3 changed files with 26 additions and 4 deletions

View File

@@ -643,7 +643,7 @@ def timesince(value, arg=None):
if not value:
return u''
if arg:
return timesince(arg, value)
return timesince(value, arg)
return timesince(value)
timesince.is_safe = False