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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user