Use key_name instead of link_id
Some entities do not have a link_id, but all entities are guaranteed
to have a key_name (or an id).
"Decorator for views that gzips pages if the client supports it."from django.utils.decorators import decorator_from_middlewarefrom django.middleware.gzip import GZipMiddlewaregzip_page = decorator_from_middleware(GZipMiddleware)