def lockdown(*args, **kwargs):
return decorator_from_middleware_with_args(LockdownMiddleware)(*args,<EOL>**kwargs)<EOL>
Define a decorator based on the LockdownMiddleware.

    This decorator takes the same arguments as the middleware, but allows a
    more granular locking than the middleware.