(see https://github.com/benoitc/couchdbkit/pull/173/files)