Add inherit=True because IMiddleware has a new method

See https://github.com/ckan/ckan/pull/1836