app/django/views/decorators/gzip.py
author Lennard de Rijk <ljvderijk@gmail.com>
Fri, 14 Aug 2009 10:21:09 -0700
changeset 2774 14b51b124ccb
parent 54 03e267d67478
permissions -rw-r--r--
Fixed call to get QueryForFields due to changes in r0548101922. The order argument was given as ancestor instead of order.

"Decorator for views that gzips pages if the client supports it."

from django.utils.decorators import decorator_from_middleware
from django.middleware.gzip import GZipMiddleware

gzip_page = decorator_from_middleware(GZipMiddleware)