@classmethod
def with_request(cls, request):
    """Return a `RequestContext` subclass for a specified request."""
    return type(cls.__name__, (cls,), {'request': request, '__module__':
        cls.__module__})
