1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

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
This commit is contained in:
Aymeric Augustin
2011-10-29 15:28:44 +00:00
parent eedc9cb5f6
commit 0a1a9b71fa
2 changed files with 28 additions and 27 deletions

View File

@@ -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):