Backport of [15161] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15162 bcc190cf-cafb-0310-a4f2-bffc1f526a37
6 lines
253 B
Python
6 lines
253 B
Python
from django.utils.decorators import decorator_from_middleware
|
|
from django.middleware.gzip import GZipMiddleware
|
|
|
|
gzip_page = decorator_from_middleware(GZipMiddleware)
|
|
gzip_page.__doc__ = "Decorator for views that gzips pages if the client supports it."
|