diff --git a/django/utils/decorators.py b/django/utils/decorators.py index 3d616f2627..c22c01ac09 100644 --- a/django/utils/decorators.py +++ b/django/utils/decorators.py @@ -41,7 +41,7 @@ def decorator_from_middleware_with_args(middleware_class): that accepts the arguments to be passed to the middleware_class. Use like:: - cache_page = decorator_from_middleware(CacheMiddleware) + cache_page = decorator_from_middleware_with_args(CacheMiddleware) # ... @cache_page(3600)