Ticket #962: register_filter_fix_r1496.diff
File register_filter_fix_r1496.diff, 567 bytes (added by , 19 years ago) |
---|
-
django/core/template/__init__.py
828 828 elif name != None and filter_func != None: 829 829 # register.filter('somename', somefunc) 830 830 self.filters[name] = filter_func 831 return filter_func 831 832 else: 832 833 raise InvalidTemplateLibrary, "Unsupported arguments to Library.filter: (%r, %r, %r)", (name, compile_function, has_arg) 833 834