Fixed #962 -- Gave filter-registration decorator a return statement. Thanks, Kieran
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
289119563e
commit
e2e98aff6a
|
@ -828,6 +828,7 @@ class Library(object):
|
|||
elif name != None and filter_func != None:
|
||||
# register.filter('somename', somefunc)
|
||||
self.filters[name] = filter_func
|
||||
return filter_func
|
||||
else:
|
||||
raise InvalidTemplateLibrary, "Unsupported arguments to Library.filter: (%r, %r, %r)", (name, compile_function, has_arg)
|
||||
|
||||
|
|
Loading…
Reference in New Issue