Ticket #1015: middleware_decorators.diff
File middleware_decorators.diff, 594 bytes (added by , 18 years ago) |
---|
-
django/utils/decorators.py
30 30 return result 31 31 return response 32 32 return _wrapped_view 33 34 def _proper_2_4_decorator(*args, **kwargs): 35 def _decorator(f): 36 return _decorator_from_middleware(f, *args, **kwargs) 37 return _decorator 38 39 _decorator_from_middleware.decorator = _proper_2_4_decorator 40 33 41 return _decorator_from_middleware