Ticket #962: register_filter_fix_r1496.diff

File register_filter_fix_r1496.diff, 567 bytes (added by django@…, 19 years ago)

Patch for glitch in filter registration decorator

  • django/core/template/__init__.py

     
    828828        elif name != None and filter_func != None:
    829829            # register.filter('somename', somefunc)
    830830            self.filters[name] = filter_func
     831            return filter_func
    831832        else:
    832833            raise InvalidTemplateLibrary, "Unsupported arguments to Library.filter: (%r, %r, %r)", (name, compile_function, has_arg)
    833834
Back to Top