summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2011-10-29 15:28:44 +0000
committerAymeric Augustin <aymeric.augustin@m4x.org>2011-10-29 15:28:44 +0000
commit0a1a9b71fab11fd598e0699f09797eea55d42fce (patch)
treeeb6a069406eb805f16eb2cd21a33036028ebf7fe /django
parenteedc9cb5f67dad63036126953b8955c763a86bbc (diff)
Made the defaultfilters tests run on the actual filters, not on functions imported from django.utils.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17054 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/template/defaultfilters.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py
index d94830cc39..5301c7cc86 100644
--- a/django/template/defaultfilters.py
+++ b/django/template/defaultfilters.py
@@ -581,7 +581,7 @@ def random(value):
random.is_safe = True
@register.filter("slice")
-def slice_(value, arg):
+def slice_filter(value, arg):
"""
Returns a slice of the list.
@@ -600,7 +600,7 @@ def slice_(value, arg):
except (ValueError, TypeError):
return value # Fail silently.
-slice_.is_safe = True
+slice_filter.is_safe = True
@register.filter
def unordered_list(value, autoescape=None):