summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-02-23 20:27:03 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-02-23 20:27:03 +0000
commit9a74e89ef06433e53e6926a07d42c30d22840682 (patch)
tree2e369ca6d19512d345619a53a67daf37dbc48193 /tests
parenta5fad0eb37fd78ce4cdc26dd6bf2510c5ccc5fc9 (diff)
Fixed #1385 -- Allowed timesince filter to accept datetime.date objects. Thanks, Matt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2375 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/othertests/defaultfilters.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/othertests/defaultfilters.py b/tests/othertests/defaultfilters.py
index d0d5d21e58..fa018a2328 100644
--- a/tests/othertests/defaultfilters.py
+++ b/tests/othertests/defaultfilters.py
@@ -237,6 +237,10 @@ False
>>> timesince(datetime.datetime.now() - datetime.timedelta(1))
'1 day'
+# datetime.date compataibility with timesince
+>>> timesince(datetime.date.today() - datetime.timedelta(1))
+'1 day, 23 hours'
+
>>> default("val", "default")
'val'